3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/immutables/default.nix

45 lines
832 B
Nix
Raw Normal View History

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