summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyschemes/default.nix
blob: 327cb078b071b2ed2a76c13e90114b8076957f6b (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  fetchpatch,
}:

buildPythonPackage {
  pname = "pyschemes";
  version = "unstable-2017-11-08";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "spy16";
    repo = "pyschemes";
    rev = "ca6483d13159ba65ba6fc2f77b90421c40f2bbf2";
    hash = "sha256-PssucudvlE8mztwVme70+h+2hRW/ri9oV9IZayiZhdU=";
  };

  patches = [
    # Fix python 3.10 compatibility. Tracked upstream in
    # https://github.com/spy16/pyschemes/pull/6
    (fetchpatch {
      url = "https://github.com/spy16/pyschemes/commit/23011128c6c22838d4fca9e00fd322a20bb566c4.patch";
      hash = "sha256-vDaWxMrn2aC2wmd035EWRZ3cd/XME81z/BWG0f2T9jc=";
    })
  ];
  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pyschemes" ];

  meta = {
    description = "Library for validating data structures in Python";
    homepage = "https://github.com/spy16/pyschemes";
    license = lib.licenses.wtfpl;
    maintainers = with lib.maintainers; [ gador ];
  };
}