summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2022-01-26 23:55:23 +0100
committerGitHub <noreply@github.com>2022-01-26 23:55:23 +0100
commit6d28139e80dd2976650c6356269db942202e7c90 (patch)
tree56f72a1890228fbf801c3dab67d432919fd3e93c
parente77a40f91e93b1327d84d743a532dccb05da3634 (diff)
parent71b4acaa4af37ec14244e56d2a54e18e1f03eefb (diff)
Merge pull request #155796 from austinbutler/entrypoint2-1
python3Packages.entrypoint2: 0.2.4 -> 1.0
-rw-r--r--pkgs/development/python-modules/entrypoint2/default.nix22
1 files changed, 4 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/entrypoint2/default.nix b/pkgs/development/python-modules/entrypoint2/default.nix
index d1325f6f0e10..73ede85fb886 100644
--- a/pkgs/development/python-modules/entrypoint2/default.nix
+++ b/pkgs/development/python-modules/entrypoint2/default.nix
@@ -1,31 +1,17 @@
-{ lib, buildPythonPackage, fetchPypi, EasyProcess, pathpy, pytest }:
+{ lib, buildPythonPackage, fetchPypi, EasyProcess, pathpy, pytestCheckHook }:
buildPythonPackage rec {
pname = "entrypoint2";
- version = "0.2.4";
+ version = "1.0";
src = fetchPypi {
inherit pname version;
- sha256 = "4770c3afcf3865c606a6e5f7cfcc5c59212f555fcee9b2540270399149c1dde3";
+ sha256 = "sha256-Z+kG9q2VjYP0i07ewo192CZw6SYZiPa0prY6vJ+zvlY=";
};
- 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
- '';
+ checkInputs = [ EasyProcess pathpy pytestCheckHook ];
meta = with lib; {
description = "Easy to use command-line interface for python modules";