1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 jinja2, 6 pytest, 7}: 8 9buildPythonPackage rec { 10 pname = "coreschema"; 11 version = "0.0.4"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 repo = "python-coreschema"; 16 owner = "core-api"; 17 rev = version; 18 sha256 = "027pc753mkgbb3r1v1x7dsdaarq93drx0f79ppvw9pfkcjcq6wb1"; 19 }; 20 21 propagatedBuildInputs = [ jinja2 ]; 22 23 nativeCheckInputs = [ pytest ]; 24 checkPhase = '' 25 cd ./tests 26 pytest 27 ''; 28 29 meta = with lib; { 30 description = "Python client library for Core Schema"; 31 homepage = "https://github.com/ivegotasthma/python-coreschema"; 32 license = licenses.bsd3; 33 maintainers = [ ]; 34 }; 35}