mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
31 lines
713 B
Nix
31 lines
713 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
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;
|
|
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 ];
|
|
};
|
|
}
|