2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "commandlines";
|
|
|
|
version = "0.4.1";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
# PyPI source tarballs omit tests, fetch from Github instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrissimpkins";
|
|
|
|
repo = "commandlines";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-x3iUeOTAaTKNW5Y5foMPMJcWVxu52uYZoY3Hhe3UvQ4=";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for command line argument parsing";
|
|
|
|
homepage = "https://github.com/chrissimpkins/commandlines";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danc86 ];
|
|
|
|
};
|
|
|
|
}
|