depot/third_party/nixpkgs/pkgs/development/python-modules/immutables/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
986 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "immutables";
version = "0.20";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "MagicStack";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-fEECtP6WQVzwSzBYX+CbhQtzkB/1WC3OYKXk2XY//xA=";
};
postPatch = ''
rm tests/conftest.py
'';
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# Version mismatch
"testMypyImmu"
];
disabledTestPaths = [
# avoid dependency on mypy
"tests/test_mypy.py"
];
pythonImportsCheck = [ "immutables" ];
meta = with lib; {
description = "Immutable mapping type";
homepage = "https://github.com/MagicStack/immutables";
changelog = "https://github.com/MagicStack/immutables/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ catern ];
};
}