python3Packages.flit: 2.3.0 -> 3.0.0
This commit is contained in:
parent
4b03636646
commit
0949dfcaa3
2 changed files with 24 additions and 16 deletions
|
@ -1,26 +1,24 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, flit
|
||||
, isPy3k
|
||||
, pytoml
|
||||
, toml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flit-core";
|
||||
version = "2.3.0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "flit_core";
|
||||
sha256 = "a50bcd8bf5785e3a7d95434244f30ba693e794c5204ac1ee908fc07c4acdbf80";
|
||||
};
|
||||
inherit (flit) src patches;
|
||||
|
||||
preConfigure = ''
|
||||
cd flit_core
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytoml
|
||||
toml
|
||||
];
|
||||
|
||||
passthru.tests = {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, isPy3k
|
||||
, docutils
|
||||
, requests
|
||||
|
@ -10,7 +11,6 @@
|
|||
, pytest
|
||||
, testpath
|
||||
, responses
|
||||
, pytoml
|
||||
, flit-core
|
||||
}:
|
||||
|
||||
|
@ -21,19 +21,29 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "flit";
|
||||
version = "2.3.0";
|
||||
version = "3.0.0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "017012b809ec489918afd68af7a70bd7c8c770c87b60159d875c126866e97a4b";
|
||||
src = fetchFromGitHub {
|
||||
owner = "takluyver";
|
||||
repo = "flit";
|
||||
rev = version;
|
||||
sha256 = "zk6mozS3Q9U43PQe/DxgwwsBRJ6Qwb+rSUVGXHijD+g=";
|
||||
};
|
||||
|
||||
# Use toml instead of pytoml
|
||||
# Resolves infinite recursion since packaging started using flit.
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/takluyver/flit/commit/b81b1da55ef0f2768413669725d2874fcb0c29fb.patch";
|
||||
sha256 = "11oNaYsm00/j2046V9C0idpSeG7TpY3JtLuxX3ZL/OI=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
docutils
|
||||
requests
|
||||
requests_download
|
||||
pytoml
|
||||
flit-core
|
||||
] ++ lib.optionals (pythonOlder "3.6") [
|
||||
zipfile36
|
||||
|
|
Loading…
Reference in a new issue