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