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