python3Packages.birch: init at 0.0.35
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
||||
@@ -1476,6 +1476,8 @@ self: super: with self; {
|
||||
|
||||
bip32 = callPackage ../development/python-modules/bip32 { };
|
||||
|
||||
birch = callPackage ../development/python-modules/birch { };
|
||||
|
||||
bitarray = callPackage ../development/python-modules/bitarray { };
|
||||
|
||||
bitbox02 = callPackage ../development/python-modules/bitbox02 { };
|
||||
|
||||
Reference in New Issue
Block a user