2021-02-13 19:54:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-08-22 12:20:00 +01:00
|
|
|
, fetchFromGitHub
|
2021-02-13 19:54:02 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-08-22 12:20:00 +01:00
|
|
|
, mypy
|
|
|
|
, typing-extensions
|
2021-02-13 19:54:02 +00:00
|
|
|
}:
|
2018-05-08 23:14:03 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "immutables";
|
2021-08-22 12:20:00 +01:00
|
|
|
version = "0.16";
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-05-08 23:14:03 +01:00
|
|
|
|
2021-08-22 12:20:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MagicStack";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1f6nlpvrs41cjrnikx48qd0rlf7d89h6dzlr5zcndzsim7fgsmgz";
|
2018-05-08 23:14:03 +01:00
|
|
|
};
|
|
|
|
|
2021-08-22 12:20:00 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mypy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Version mismatch
|
|
|
|
"testMypyImmu"
|
|
|
|
];
|
2021-02-13 19:54:02 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "immutables" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-05-08 23:14:03 +01:00
|
|
|
description = "An immutable mapping type for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/MagicStack/immutables";
|
2021-02-13 19:54:02 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ catern ];
|
2018-05-08 23:14:03 +01:00
|
|
|
};
|
|
|
|
}
|