2019-08-12 05:23:18 +01:00
|
|
|
{
|
2021-01-11 07:54:33 +00:00
|
|
|
lib, stdenv,
|
2019-08-12 05:23:18 +01:00
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
jinja2,
|
|
|
|
pytest,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "coreschema";
|
|
|
|
version = "0.0.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "python-coreschema";
|
|
|
|
owner = "core-api";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "027pc753mkgbb3r1v1x7dsdaarq93drx0f79ppvw9pfkcjcq6wb1";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
2019-08-12 20:53:25 +01:00
|
|
|
cd ./tests
|
|
|
|
pytest
|
2019-08-12 05:23:18 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-12 05:23:18 +01:00
|
|
|
description = "Python client library for Core Schema";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ivegotasthma/python-coreschema";
|
2019-08-12 05:23:18 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ivegotasthma ];
|
|
|
|
};
|
|
|
|
}
|