python3.pkgs.poetry: fixup
This commit is contained in:
parent
befc2dfa82
commit
21177d3e93
@ -17,10 +17,11 @@
|
|||||||
, virtualenv
|
, virtualenv
|
||||||
, functools32
|
, functools32
|
||||||
, pytest
|
, pytest
|
||||||
|
, jsonschema
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
cleo6 = cleo.overrideAttrs (oldAttrs: rec {
|
cleo6 = cleo.overridePythonAttrs (oldAttrs: rec {
|
||||||
version = "0.6.8";
|
version = "0.6.8";
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit (oldAttrs) pname;
|
inherit (oldAttrs) pname;
|
||||||
@ -28,8 +29,6 @@ let
|
|||||||
sha256 = "06zp695hq835rkaq6irr1ds1dp2qfzyf32v60vxpd8rcnxv319l5";
|
sha256 = "06zp695hq835rkaq6irr1ds1dp2qfzyf32v60vxpd8rcnxv319l5";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
jsonschema3 = callPackage ./jsonschema.nix { };
|
|
||||||
glob2 = callPackage ./glob2.nix { };
|
glob2 = callPackage ./glob2.nix { };
|
||||||
|
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
@ -51,11 +50,12 @@ in buildPythonPackage rec {
|
|||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
cachy
|
||||||
cleo6
|
cleo6
|
||||||
requests
|
requests
|
||||||
cachy
|
cachy
|
||||||
requests-toolbelt
|
requests-toolbelt
|
||||||
jsonschema3
|
jsonschema
|
||||||
pyrsistent
|
pyrsistent
|
||||||
pyparsing
|
pyparsing
|
||||||
cachecontrol
|
cachecontrol
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy27
|
|
||||||
, attrs
|
|
||||||
, pyrsistent
|
|
||||||
, six
|
|
||||||
, functools32
|
|
||||||
, lockfile
|
|
||||||
, setuptools_scm
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "jsonschema";
|
|
||||||
version = "3.0.2";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "8d4a2b7b6c2237e0199c8ea1a6d3e05bf118e289ae2b9d7ba444182a2959560d";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm ];
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
attrs
|
|
||||||
pyrsistent
|
|
||||||
six
|
|
||||||
lockfile
|
|
||||||
] ++ lib.optional isPy27 functools32;
|
|
||||||
|
|
||||||
# tests for latest version rely on custom version of betterpaths that is
|
|
||||||
# difficult to deal with and isn't used on master
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = https://github.com/Julian/jsonschema;
|
|
||||||
description = "An implementation of JSON Schema validation for Python";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ jakewaksbaum ];
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user