python3Packages.poetry: use pyproject

Note we should not import modules from within a derivation.
This will need to be fixed.
This commit is contained in:
Will Dietz 2019-04-14 13:40:11 -05:00 committed by Frederik Rietdijk
parent 840b538da0
commit 5102201ba4
2 changed files with 15 additions and 1 deletions

View File

@ -29,6 +29,7 @@ let
});
jsonschema3 = callPackage ./jsonschema.nix { };
glob2 = callPackage ./glob2.nix { };
in buildPythonPackage rec {
pname = "poetry";
@ -45,6 +46,8 @@ in buildPythonPackage rec {
"requests-toolbelt>=0.8.0,<0.10.0"
'';
format = "pyproject";
propagatedBuildInputs = [
cleo6
requests
@ -58,7 +61,7 @@ in buildPythonPackage rec {
html5lib
shellingham
tomlkit
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 ]
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 glob2 ]
++ lib.optionals isPy27 [ virtualenv functools32 ];
postInstall = ''

View File

@ -0,0 +1,11 @@
{ buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "glob2";
version = "0.6";
src = fetchPypi {
inherit pname version;
sha256 = "1miyz0pjyji4gqrzl04xsxcylk3h2v9fvi7hsg221y11zy3adc7m";
};
}