mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 17:46:38 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
671 B
Nix
35 lines
671 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
jinja2,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coreschema";
|
|
version = "0.0.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "python-coreschema";
|
|
owner = "core-api";
|
|
rev = version;
|
|
sha256 = "027pc753mkgbb3r1v1x7dsdaarq93drx0f79ppvw9pfkcjcq6wb1";
|
|
};
|
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
|
|
|
nativeCheckInputs = [ pytest ];
|
|
checkPhase = ''
|
|
cd ./tests
|
|
pytest
|
|
'';
|
|
|
|
meta = {
|
|
description = "Python client library for Core Schema";
|
|
homepage = "https://github.com/ivegotasthma/python-coreschema";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|