depot/third_party/nixpkgs/pkgs/development/python-modules/immutables/default.nix
Default email 2ea8997135 Project import generated by Copybara.
GitOrigin-RevId: 5bc8b980b9178ef9a4bb622320cf34e59ea2ea10
2021-08-23 10:02:39 +02:00

44 lines
832 B
Nix

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