git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.entrypoint2: init at 0.2.1
commit84d74ae9c9cbed73274b8e4e00be14688ffc93fe authorAustin Butler <austinabutler@gmail.com> dateSat 26 Sep 2020, 18:51 (6 years ago) parentaf2dc4d
2 files changed+38
pkgs/development/python-modules/entrypoint2/default.nix+36 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/entrypoint2/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib, buildPythonPackage, fetchPypi, EasyProcess, pathpy, pytest }:
2+
3+buildPythonPackage rec {
4+ pname = "entrypoint2";
5+ version = "0.2.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "15dya04884armqjdyqz1jgachkqgh9dc3p25lvyz9afvg73k2qav";
10+ };
11+
12+ propagatedBuildInputs = [ ];
13+
14+ pythonImportsCheck = [ "entrypoint2" ];
15+
16+ # argparse is part of the standardlib
17+ prePatch = ''
18+ substituteInPlace setup.py --replace "argparse" ""
19+ '';
20+
21+ checkInputs = [ EasyProcess pathpy pytest ];
22+
23+ # 0.2.1 has incompatible pycache files included
24+ # https://github.com/ponty/entrypoint2/issues/8
25+ checkPhase = ''
26+ rm -rf tests/__pycache__
27+ pytest tests
28+ '';
29+
30+ meta = with lib; {
31+ description = "Easy to use command-line interface for python modules";
32+ homepage = "https://github.com/ponty/entrypoint2/";
33+ license = licenses.bsd2;
34+ maintainers = with maintainers; [ austinbutler ];
35+ };
36+}
pkgs/top-level/python-packages.nix+2
@@ -1869,6 +1869,8 @@ in {
18691869
18701870 entrance-with-router-features = callPackage ../development/python-modules/entrance { routerFeatures = true; };
18711871
1872+ entrypoint2 = callPackage ../development/python-modules/entrypoint2 { };
1873+
18721874 entrypoints = callPackage ../development/python-modules/entrypoints { };
18731875
18741876 enum34 = callPackage ../development/python-modules/enum34 { };