depot/third_party/nixpkgs/pkgs/development/python-modules/jsonref/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

48 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; [ ];
};
}