summary refs log tree commit diff
path: root/pkgs/development/python-modules/itypes/default.nix
blob: 1386ba39a2689544cab657196d4574bf8aa67439 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  stdenv,
  fetchFromGitHub,
  buildPythonPackage,
  pytest,
}:

buildPythonPackage rec {
  pname = "itypes";
  version = "1.1.0";

  src = fetchFromGitHub {
    repo = pname;
    owner = "tomchristie";
    rev = version;
    sha256 = "0zkhn16wpslkxkq77dqw5rxa28nrchcb6nd3vgnxv91p4skyfm62";
  };

  checkInputs = [ pytest ];
  checkPhase = ''
    mv itypes.py itypes.py.hidden
    pytest tests.py
  '';

  meta = with stdenv.lib; {
    description = "Simple immutable types for python";
    homepage = https://github.com/tomchristie/itypes;
    license = licenses.bsd3;
    maintainers = with maintainers; [ ivegotasthma ];
  };
}