Skip to content

Commit

Permalink
pythonPackages.entrypoint2: init at 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
austinbutler authored and Jon committed Sep 27, 2020
1 parent af2dc4d commit 84d74ae
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions pkgs/development/python-modules/entrypoint2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ lib, buildPythonPackage, fetchPypi, EasyProcess, pathpy, pytest }:

buildPythonPackage rec {
pname = "entrypoint2";
version = "0.2.1";

src = fetchPypi {
inherit pname version;
sha256 = "15dya04884armqjdyqz1jgachkqgh9dc3p25lvyz9afvg73k2qav";
};

propagatedBuildInputs = [ ];

pythonImportsCheck = [ "entrypoint2" ];

# argparse is part of the standardlib
prePatch = ''
substituteInPlace setup.py --replace "argparse" ""
'';

checkInputs = [ EasyProcess pathpy pytest ];

# 0.2.1 has incompatible pycache files included
# https://github.com/ponty/entrypoint2/issues/8
checkPhase = ''
rm -rf tests/__pycache__
pytest tests
'';

meta = with lib; {
description = "Easy to use command-line interface for python modules";
homepage = "https://github.com/ponty/entrypoint2/";
license = licenses.bsd2;
maintainers = with maintainers; [ austinbutler ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,8 @@ in {

entrance-with-router-features = callPackage ../development/python-modules/entrance { routerFeatures = true; };

entrypoint2 = callPackage ../development/python-modules/entrypoint2 { };

entrypoints = callPackage ../development/python-modules/entrypoints { };

enum34 = callPackage ../development/python-modules/enum34 { };
Expand Down

0 comments on commit 84d74ae

Please sign in to comment.