2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
|
|
|
, yacs
|
|
|
|
, boxx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zcs";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.1.18";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-cIg0LFQFVo91Ywvulxtx0/PPyQnRflJFnIi0gaUGGq4=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
patches = [
|
|
|
|
./fix-test-yaml.patch
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|