mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 08:30:57 +00:00
python3Packages.jsonref: 0.2 -> 1.0.1
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user