13 buildPythonPackage rec {
18 src = fetchFromGitHub {
22 hash = "sha256-KdQZzQJvJ+logpcLQfaqqEEZJ/9VmNTQX/a4v0oBC98=";
26 # https://github.com/shaypal5/birch/pull/4
28 name = "fix-versioneer-on-python312.patch";
29 url = "https://github.com/shaypal5/birch/commit/84d597b2251ebb76fb15fb70fc86c83baa19dc0b.patch";
30 hash = "sha256-xXADCSIhq1ARny2twzrhR1J8LkMFWFl6tmGxrM8RvkU=";
35 # configure correct version, which fails due to missing .git
36 substituteInPlace versioneer.py birch/_version.py \
37 --replace-fail '"0+unknown"' '"${version}"'
40 nativeBuildInputs = [ setuptools ];
42 dependencies = [ strct ];
44 pythonImportsCheck = [
58 export HOME="$(mktemp -d)"
62 description = "Simple hierarchical configuration for Python packages";
63 homepage = "https://github.com/shaypal5/birch";
64 license = licenses.mit;
65 maintainers = with maintainers; [ pbsds ];