Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / itypes / default.nix
blob14f0214397882564c975f7ac1a52bd34bcc721f1
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   pytest,
6 }:
8 buildPythonPackage rec {
9   pname = "itypes";
10   version = "1.2.0";
12   src = fetchFromGitHub {
13     repo = pname;
14     owner = "tomchristie";
15     rev = version;
16     sha256 = "1ljhjp9pacbrv2phs58vppz1dlxix01p98kfhyclvbml6dgjcr52";
17   };
19   nativeCheckInputs = [ pytest ];
20   checkPhase = ''
21     mv itypes.py itypes.py.hidden
22     pytest tests.py
23   '';
25   meta = with lib; {
26     description = "Simple immutable types for python";
27     homepage = "https://github.com/tomchristie/itypes";
28     license = licenses.bsd3;
29     maintainers = with maintainers; [ ];
30   };