summary refs log tree commit diff
path: root/pkgs/development/python-modules/yacs/default.nix
blob: 7abf151a08f748be0e2e3dd913b5c96b2f7d0717 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, pyyaml
}:

buildPythonPackage rec {
  pname = "yacs";
  version = "0.1.8";

  src = fetchFromGitHub {
    owner = "rbgirshick";
    repo = "yacs";
    rev = "v${version}";
    sha256 = "sha256-nO8FL4tTkfTthXYXxXORLieFwvn780DDxfrxC9EUUJ0=";
  };

  propagatedBuildInputs = [ pyyaml ];

  pythonImportsCheck = [ "yacs" ];
  checkPhase = ''
    ${python.interpreter} yacs/tests.py
  '';

  meta = with lib; {
    description = "Yet Another Configuration System";
    homepage = "https://github.com/rbgirshick/yacs";
    license = licenses.apsl20;
    maintainers = with maintainers; [ lucasew ];
  };
}