depot/third_party/nixpkgs/pkgs/development/python-modules/zcs/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

37 lines
728 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, yacs
, boxx
}:
buildPythonPackage rec {
pname = "zcs";
version = "0.1.22";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-+0lG2OirfXj55IFA9GMERVWtrWwULfVfdbIg8ebH+7M=";
};
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 ];
};
}