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:
parent
840b538da0
commit
5102201ba4
|
@ -29,6 +29,7 @@ let
|
||||||
});
|
});
|
||||||
|
|
||||||
jsonschema3 = callPackage ./jsonschema.nix { };
|
jsonschema3 = callPackage ./jsonschema.nix { };
|
||||||
|
glob2 = callPackage ./glob2.nix { };
|
||||||
|
|
||||||
in buildPythonPackage rec {
|
in buildPythonPackage rec {
|
||||||
pname = "poetry";
|
pname = "poetry";
|
||||||
|
@ -45,6 +46,8 @@ in buildPythonPackage rec {
|
||||||
"requests-toolbelt>=0.8.0,<0.10.0"
|
"requests-toolbelt>=0.8.0,<0.10.0"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
cleo6
|
cleo6
|
||||||
requests
|
requests
|
||||||
|
@ -58,7 +61,7 @@ in buildPythonPackage rec {
|
||||||
html5lib
|
html5lib
|
||||||
shellingham
|
shellingham
|
||||||
tomlkit
|
tomlkit
|
||||||
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 ]
|
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 glob2 ]
|
||||||
++ lib.optionals isPy27 [ virtualenv functools32 ];
|
++ lib.optionals isPy27 [ virtualenv functools32 ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ buildPythonPackage, fetchPypi }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "glob2";
|
||||||
|
version = "0.6";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1miyz0pjyji4gqrzl04xsxcylk3h2v9fvi7hsg221y11zy3adc7m";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue