Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyschemes / default.nix
blob384e375ecbdedd5d78a0016b2cf1e75ed82b17fb
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , fetchpatch
6 }:
8 buildPythonPackage rec {
9   pname = "pyschemes";
10   version = "unstable-2017-11-08";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "spy16";
15     repo = pname;
16     rev = "ca6483d13159ba65ba6fc2f77b90421c40f2bbf2";
17     hash = "sha256-PssucudvlE8mztwVme70+h+2hRW/ri9oV9IZayiZhdU=";
18   };
20   patches = [
21     # Fix python 3.10 compatibility. Tracked upstream in
22     # https://github.com/spy16/pyschemes/pull/6
23     (fetchpatch {
24       url = "https://github.com/spy16/pyschemes/commit/23011128c6c22838d4fca9e00fd322a20bb566c4.patch";
25       hash = "sha256-vDaWxMrn2aC2wmd035EWRZ3cd/XME81z/BWG0f2T9jc=";
26     })
27   ];
28   nativeCheckInputs = [
29     pytestCheckHook
30   ];
32   pythonImportsCheck = [ "pyschemes" ];
34   meta = with lib; {
35     description = "A library for validating data structures in Python";
36     homepage = "https://github.com/spy16/pyschemes";
37     license = licenses.wtfpl;
38     maintainers = with maintainers; [ gador ];
39   };