e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
60 lines
1,003 B
Nix
60 lines
1,003 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, strct
|
|
, pytestCheckHook
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "birch";
|
|
version = "0.0.35";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "shaypal5";
|
|
repo = "birch";
|
|
rev = "v${version}";
|
|
hash = "sha256-KdQZzQJvJ+logpcLQfaqqEEZJ/9VmNTQX/a4v0oBC98=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace \
|
|
"--cov" \
|
|
"#--cov"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
strct
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"birch"
|
|
"birch.casters"
|
|
"birch.exceptions"
|
|
"birch.paths"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pyyaml
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME="$(mktemp -d)"
|
|
'';
|
|
|
|
|
|
meta = with lib; {
|
|
description = "Simple hierarchical configuration for Python packages";
|
|
homepage = "https://github.com/shaypal5/birch";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ pbsds ];
|
|
};
|
|
}
|