nixpkgs/pkgs/development/python-modules/gitdb/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

51 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
setuptools,
smmap,
}:
buildPythonPackage rec {
pname = "gitdb";
version = "4.0.12";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-XvcfhV0ZGjMm/PvA1dqDXyaxP7y6YMMsIQkcNJ/9tXE=";
};
nativeBuildInputs = [
setuptools
];
pythonRelaxDeps = [ "smmap" ];
propagatedBuildInputs = [ smmap ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "gitdb" ];
disabledTests = [
# Tests need part which are not shipped with PyPI releases
"test_base"
"test_reading"
"test_writing"
"test_correctness"
"test_loose_correctness"
"test_pack_random_access"
"test_pack_writing"
"test_stream_reading"
];
meta = {
description = "Git Object Database";
homepage = "https://github.com/gitpython-developers/gitdb";
changelog = "https://github.com/gitpython-developers/gitdb/releases/tag/${version}";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}