1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 django, 6 coreschema, 7 itypes, 8 uritemplate, 9 requests, 10 pytest, 11}: 12 13buildPythonPackage rec { 14 pname = "coreapi"; 15 version = "2.3.3"; 16 17 src = fetchFromGitHub { 18 repo = "python-client"; 19 owner = "core-api"; 20 rev = version; 21 sha256 = "1c6chm3q3hyn8fmjv23qgc79ai1kr3xvrrkp4clbqkssn10k7mcw"; 22 }; 23 24 propagatedBuildInputs = [ 25 django 26 coreschema 27 itypes 28 uritemplate 29 requests 30 ]; 31 32 nativeCheckInputs = [ pytest ]; 33 checkPhase = '' 34 cd ./tests 35 pytest 36 ''; 37 38 meta = with lib; { 39 description = "Python client library for Core API"; 40 homepage = "https://github.com/core-api/python-client"; 41 license = licenses.bsd3; 42 maintainers = with maintainers; [ ]; 43 }; 44}