0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

python3Packages.entrypoint2: 0.2.4 -> 1.0

This commit is contained in:
Austin Butler 2022-01-19 22:35:05 -08:00
parent 39900ee62d
commit 71b4acaa4a

View file

@ -1,31 +1,17 @@
{ lib, buildPythonPackage, fetchPypi, EasyProcess, pathpy, pytest }: { lib, buildPythonPackage, fetchPypi, EasyProcess, pathpy, pytestCheckHook }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "entrypoint2"; pname = "entrypoint2";
version = "0.2.4"; version = "1.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "4770c3afcf3865c606a6e5f7cfcc5c59212f555fcee9b2540270399149c1dde3"; sha256 = "sha256-Z+kG9q2VjYP0i07ewo192CZw6SYZiPa0prY6vJ+zvlY=";
}; };
propagatedBuildInputs = [ ];
pythonImportsCheck = [ "entrypoint2" ]; pythonImportsCheck = [ "entrypoint2" ];
# argparse is part of the standardlib checkInputs = [ EasyProcess pathpy pytestCheckHook ];
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; { meta = with lib; {
description = "Easy to use command-line interface for python modules"; description = "Easy to use command-line interface for python modules";