mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
34 lines
678 B
Nix
34 lines
678 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, python
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yacs";
|
|
version = "0.1.8";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rbgirshick";
|
|
repo = "yacs";
|
|
rev = "v${version}";
|
|
hash = "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.asl20;
|
|
maintainers = with maintainers; [ lucasew ];
|
|
};
|
|
}
|