depot/third_party/nixpkgs/pkgs/development/python-modules/immutables/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

55 lines
1,019 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "immutables";
version = "0.19";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "MagicStack";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-yW+pmAryBp6bvjolN91ACDkk5zxvKfu4nRLQSy71kqs=";
};
postPatch = ''
rm tests/conftest.py
'';
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# Version mismatch
"testMypyImmu"
];
disabledTestPaths = [
# avoid dependency on mypy
"tests/test_mypy.py"
];
pythonImportsCheck = [
"immutables"
];
meta = with lib; {
description = "An immutable mapping type";
homepage = "https://github.com/MagicStack/immutables";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ catern ];
};
}