linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / typesentry / default.nix
blobef3b1c78c399036ccd6245cb39c0ec2fe23ee738
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , colorama
5 , pytest
6 , pytestcov
7 }:
9 buildPythonPackage {
10   pname = "typesentry";
11   version = "0.2.7";
13   # Only wheel distribution is available on PyPi.
14   src = fetchFromGitHub {
15     owner = "h2oai";
16     repo = "typesentry";
17     rev = "0ca8ed0e62d15ffe430545e7648c9a9b2547b49c";
18     sha256 = "0z615f9dxaab3bay3v27j7q99qm6l6q8xv872yvsp87sxj7apfki";
19   };
21   propagatedBuildInputs = [ colorama ];
22   checkInputs = [ pytest pytestcov ];
23   checkPhase = ''
24     pytest
25   '';
27   meta = with lib; {
28     description = "Python 2.7 & 3.5+ runtime type-checker";
29     homepage = "https://github.com/h2oai/typesentry";
30     license = licenses.asl20;
31     maintainers = with maintainers; [ abbradar ];
32   };