nixpkgs/pkgs/development/python-modules/zcs/default.nix
2022-08-16 06:11:49 +00:00

37 lines
728 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, yacs
, boxx
}:
buildPythonPackage rec {
pname = "zcs";
version = "0.1.21";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Zs2aK+RR84uKjh+ZF/3gulS78zbb+XahTVSTJAArKHA=";
};
patches = [
./fix-test-yaml.patch
];
propagatedBuildInputs = [ yacs ];
pythonImportsCheck = [ "zcs" ];
checkInputs = [ boxx ];
checkPhase = ''
${python.interpreter} test/test_zcs.py
'';
meta = with lib; {
description = "A flexible powerful configuration system which takes advantage of both argparse and yacs";
homepage = "https://github.com/DIYer22/zcs";
license = licenses.mit;
maintainers = with maintainers; [ lucasew ];
};
}