1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, fetchpatch 6}: 7 8buildPythonPackage rec { 9 pname = "pyschemes"; 10 version = "unstable-2017-11-08"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "spy16"; 15 repo = pname; 16 rev = "ca6483d13159ba65ba6fc2f77b90421c40f2bbf2"; 17 hash = "sha256-PssucudvlE8mztwVme70+h+2hRW/ri9oV9IZayiZhdU="; 18 }; 19 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 sha256 = "sha256-vDaWxMrn2aC2wmd035EWRZ3cd/XME81z/BWG0f2T9jc="; 26 }) 27 ]; 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "pyschemes" ]; 33 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 }; 40}