02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
37 lines
728 B
Nix
37 lines
728 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
, yacs
|
|
, boxx
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zcs";
|
|
version = "0.1.18";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-cIg0LFQFVo91Ywvulxtx0/PPyQnRflJFnIi0gaUGGq4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|