2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python
|
|
|
|
, pyyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yacs";
|
|
|
|
version = "0.1.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rbgirshick";
|
|
|
|
repo = "yacs";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-nO8FL4tTkfTthXYXxXORLieFwvn780DDxfrxC9EUUJ0=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyyaml ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "yacs" ];
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} yacs/tests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Yet Another Configuration System";
|
|
|
|
homepage = "https://github.com/rbgirshick/yacs";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.asl20;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ lucasew ];
|
|
|
|
};
|
|
|
|
}
|