1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python,
6 pyyaml,
7}:
8
9buildPythonPackage rec {
10 pname = "yacs";
11 version = "0.1.8";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "rbgirshick";
16 repo = "yacs";
17 rev = "v${version}";
18 hash = "sha256-nO8FL4tTkfTthXYXxXORLieFwvn780DDxfrxC9EUUJ0=";
19 };
20
21 propagatedBuildInputs = [ pyyaml ];
22
23 pythonImportsCheck = [ "yacs" ];
24 checkPhase = ''
25 ${python.interpreter} yacs/tests.py
26 '';
27
28 meta = with lib; {
29 description = "Yet Another Configuration System";
30 homepage = "https://github.com/rbgirshick/yacs";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ lucasew ];
33 };
34}