python3Packages.jsonref: 0.2 -> 1.0.1

This commit is contained in:
Martin Weinelt
2022-12-30 20:13:21 +01:00
parent 3b51ffbc1f
commit e5d3008914

View File

@@ -1,20 +1,33 @@
{ lib, buildPythonPackage, fetchPypi
, pytest, mock }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "jsonref";
version = "0.2";
version = "1.0.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "15v69rg2lkcykb2spnq6vbbirv9sfq480fnwmfppw9gn3h95pi7k";
src = fetchFromGitHub {
owner = "gazpachoking";
repo = "jsonref";
rev = "refs/tags/v${version}";
hash = "sha256-8p0BmDZGpQ6Dl9rkqRKZKc0doG5pyXpfcVpemmetLhs=";
};
checkInputs = [ pytest mock ];
nativeBuildInputs = [
poetry-core
];
checkPhase = ''
py.test tests.py
'';
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"tests.py"
];
meta = with lib; {
description = "An implementation of JSON Reference for Python";