depot/third_party/nixpkgs/pkgs/development/python-modules/zcs/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

48 lines
803 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, yacs
, boxx
, pythonOlder
}:
buildPythonPackage rec {
pname = "zcs";
version = "0.1.25";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-/QIyRQtxLDVW+vcQi5bL8rJ0o3+OhqGhQEALR1YO1pg=";
};
patches = [
./fix-test-yaml.patch
];
propagatedBuildInputs = [
yacs
];
pythonImportsCheck = [
"zcs"
];
nativeCheckInputs = [
boxx
];
checkPhase = ''
${python.interpreter} test/test_zcs.py
'';
meta = with lib; {
description = "Configuration system which takes advantage of both argparse and yacs";
homepage = "https://github.com/DIYer22/zcs";
license = licenses.mit;
maintainers = with maintainers; [ lucasew ];
};
}