mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-02 18:23:44 +00:00
python310Packages.jsonschema-spec: 0.1.4 -> 0.2.3
https://github.com/p1c2u/jsonschema-spec/releases/tag/0.1.5 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.1.6 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.2.0 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.2.1 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.2.2 https://github.com/p1c2u/jsonschema-spec/releases/tag/0.2.3 Co-Authored-By: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
parent
5cad16a529
commit
8a280b59d7
@ -2,29 +2,40 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
|
||||
# build
|
||||
, poetry-core
|
||||
, jsonschema
|
||||
|
||||
# propagates
|
||||
, pathable
|
||||
, pyyaml
|
||||
, typing-extensions
|
||||
, referencing
|
||||
, requests
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jsonschema-spec";
|
||||
version = "0.1.4";
|
||||
version = "0.2.3";
|
||||
format = "pyproject";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "p1c2u";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-kLCV9WPWGrVgpbueafMVqtGmj3ifrBzTChE2kyxpyZk=";
|
||||
hash = "sha256-Sa97DwPnGMLmT00hVdkoGO7C0vrvtwxvUvv9lq4nCY4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" pyproject.toml
|
||||
sed -i "/^--cov/d" pyproject.toml
|
||||
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'referencing = ">=0.28.0,<0.30.0"' 'referencing = ">=0.28.0"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -32,14 +43,15 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jsonschema
|
||||
pathable
|
||||
pyyaml
|
||||
typing-extensions
|
||||
referencing
|
||||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user