at master 894 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 pythonAtLeast, 6 django, 7 coreschema, 8 itypes, 9 uritemplate, 10 requests, 11 pytest, 12}: 13 14buildPythonPackage rec { 15 pname = "coreapi"; 16 version = "2.3.3"; 17 format = "setuptools"; 18 19 # cgi module was removed in 3.13, upstream repo archived since 2019 20 disabled = pythonAtLeast "3.13"; 21 22 src = fetchFromGitHub { 23 repo = "python-client"; 24 owner = "core-api"; 25 rev = version; 26 sha256 = "1c6chm3q3hyn8fmjv23qgc79ai1kr3xvrrkp4clbqkssn10k7mcw"; 27 }; 28 29 propagatedBuildInputs = [ 30 django 31 coreschema 32 itypes 33 uritemplate 34 requests 35 ]; 36 37 nativeCheckInputs = [ pytest ]; 38 checkPhase = '' 39 cd ./tests 40 pytest 41 ''; 42 43 meta = with lib; { 44 description = "Python client library for Core API"; 45 homepage = "https://github.com/core-api/python-client"; 46 license = licenses.bsd3; 47 maintainers = [ ]; 48 }; 49}