summary refs log tree commit diff
path: root/pkgs/development/python-modules/effect/default.nix
blob: 739ace442b9568fb53a6d09a5e7ad16a230fbc37 (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
32
33
34
35
36
37
38
39
40
{ buildPythonPackage
, fetchPypi
, lib
, isPy3k
, six
, attrs
, pytest
, testtools
}:

buildPythonPackage rec {
  version = "1.1.0";
  pname = "effect";
  disabled = (!isPy3k);

  src = fetchPypi {
    inherit pname version;
    sha256 = "7affb603707c648b07b11781ebb793a4b9aee8acf1ac5764c3ed2112adf0c9ea";
  };

  nativeCheckInputs = [
    pytest
    testtools
  ];

  propagatedBuildInputs = [
    six
    attrs
  ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    description = "Pure effects for Python";
    homepage = "https://github.com/python-effect/effect";
    license = licenses.mit;
  };
}