mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
0c6feb64d2
Diff: https://github.com/gazpachoking/jsonref/compare/refs/tags/v1.0.1...v1.1.0 Changelog: https://github.com/gazpachoking/jsonref/releases/tag/v1.1.0
49 lines
923 B
Nix
49 lines
923 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pdm-backend
|
|
, pdm-pep517
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jsonref";
|
|
version = "1.1.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gazpachoking";
|
|
repo = "jsonref";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-tOhabmqCkktJUZjCrzjOjUGgA/X6EVz0KqehyLtigfc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pdm-backend
|
|
pdm-pep517
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"jsonref"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An implementation of JSON Reference for Python";
|
|
homepage = "https://github.com/gazpachoking/jsonref";
|
|
changelog = "https://github.com/gazpachoking/jsonref/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|