nixpkgs/pkgs/development/python-modules/yacs/default.nix
lucasew 12e1a3595c python3Packages.yacs: init at 0.1.8
Signed-off-by: lucasew <lucas59356@gmail.com>
2022-01-13 11:06:13 -03:00

33 lines
656 B
Nix

{ 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 ];
};
}