1{ lib 2, buildPythonPackage 3, fetchpatch 4, fetchPypi 5, freezegun 6, numpy 7, py 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "pypytools"; 14 version = "0.6.2"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-oUDAU+TRwLroNfQGYusAQKdRkHcazysqiDLfp77v5Sk="; 22 }; 23 24 propagatedBuildInputs = [ 25 py 26 ]; 27 28 checkInputs = [ 29 freezegun 30 numpy 31 pytestCheckHook 32 ]; 33 34 patches = [ 35 # Support for later Python releases, https://github.com/antocuni/pypytools/pull/2 36 (fetchpatch { 37 name = "support-later-python.patch"; 38 url = "https://github.com/antocuni/pypytools/commit/c6aed496ec35a6ef7ce9e95084849eebc16bafef.patch"; 39 sha256 = "sha256-YoYRZmgueQmxRtGaeP4zEVxuA0U7TB0PmoYHHVI7ICQ="; 40 }) 41 ]; 42 43 pythonImportsCheck = [ 44 "pypytools" 45 ]; 46 47 meta = with lib; { 48 description = "Collection of tools to use PyPy-specific features"; 49 homepage = "https://github.com/antocuni/pypytools"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}