mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-16 21:10:25 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
32 lines
662 B
Nix
32 lines
662 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "commandparse";
|
|
version = "1.1.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-S9e90BtS6qMjFtYUmgC0w4IKQP8q1iR2tGqq5l2+n6o=";
|
|
};
|
|
|
|
# tests only distributed upstream source, not PyPi
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "commandparse" ];
|
|
|
|
meta = {
|
|
description = "Python module to parse command based CLI application";
|
|
homepage = "https://github.com/flgy/commandparse";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = [ lib.maintainers.fab ];
|
|
};
|
|
}
|