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 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 repo = "python-client"; 20 owner = "core-api"; 21 rev = version; 22 sha256 = "1c6chm3q3hyn8fmjv23qgc79ai1kr3xvrrkp4clbqkssn10k7mcw"; 23 }; 24 25 propagatedBuildInputs = [ 26 django 27 coreschema 28 itypes 29 uritemplate 30 requests 31 ]; 32 33 nativeCheckInputs = [ pytest ]; 34 checkPhase = '' 35 cd ./tests 36 pytest 37 ''; 38 39 meta = with lib; { 40 description = "Python client library for Core API"; 41 homepage = "https://github.com/core-api/python-client"; 42 license = licenses.bsd3; 43 maintainers = with maintainers; [ ]; 44 }; 45}