summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyrsistent/default.nix
blob: e06cd4431fa01f84f3f42d5062757bf2c8b95e7e (plain)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  isPy27,
  setuptools,
  six,
  pytestCheckHook,
  hypothesis,
}:

buildPythonPackage rec {
  pname = "pyrsistent";
  version = "0.20.0";
  pyproject = true;

  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-TEj3j2KrWWxnkIYITQ3RMlSuTz1scqg//fXr3vjyZaQ=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [ six ];

  nativeCheckInputs = [
    pytestCheckHook
    hypothesis
  ];

  pythonImportsCheck = [ "pyrsistent" ];

  meta = {
    homepage = "https://github.com/tobgu/pyrsistent/";
    description = "Persistent/Functional/Immutable data structures";
    license = lib.licenses.mit;
  };
}