depot/third_party/nixpkgs/pkgs/development/python-modules/zcs/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
788 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 ];
};
}