2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-08-04 22:07:22 +00:00
|
|
|
, pythonOlder
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "commandparse";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.1.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-S9e90BtS6qMjFtYUmgC0w4IKQP8q1iR2tGqq5l2+n6o=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# tests only distributed upstream source, not PyPi
|
|
|
|
doCheck = false;
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"commandparse"
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to parse command based CLI application";
|
|
|
|
homepage = "https://github.com/flgy/commandparse";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.fab ];
|
|
|
|
};
|
|
|
|
}
|