-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonPackages.entrypoint2: init at 0.2.1
- Loading branch information
1 parent
af2dc4d
commit 84d74ae
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters