bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
48 lines
986 B
Nix
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 ];
|
|
};
|
|
}
|