Merge pull request #76664 from costrouc/python-fsspec-update
python3Packages.fsspec: 0.5.2 -> 0.6.2 enable tests
This commit is contained in:
commit
3af601f37d
4 changed files with 79 additions and 27 deletions
|
@ -1,22 +1,36 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, tox
|
, pytest
|
||||||
|
, pytestcov
|
||||||
|
, pytest_xdist
|
||||||
|
, pytest-django
|
||||||
|
, mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "diskcache";
|
pname = "diskcache";
|
||||||
version = "4.1.0";
|
version = "4.1.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "grantjenks";
|
||||||
sha256 = "bcee5a59f9c264e2809e58d01be6569a3bbb1e36a1e0fb83f7ef9b2075f95ce0";
|
repo = "python-diskcache";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0xy2vpk4hixb4gg871d9sx9wxdz8pi0pmnfdwg4bf8jqfjg022w8";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
tox
|
pytest
|
||||||
|
pytestcov
|
||||||
|
pytest_xdist
|
||||||
|
pytest-django
|
||||||
|
mock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Disk and file backed persistent cache";
|
description = "Disk and file backed persistent cache";
|
||||||
homepage = "http://www.grantjenks.com/docs/diskcache/";
|
homepage = "http://www.grantjenks.com/docs/diskcache/";
|
||||||
|
|
|
@ -1,26 +1,34 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
, isPy27
|
||||||
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fsspec";
|
pname = "fsspec";
|
||||||
version = "0.5.2";
|
version = "0.6.2";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
src = fetchFromGitHub {
|
||||||
|
owner = "intake";
|
||||||
src = fetchPypi {
|
repo = "filesystem_spec";
|
||||||
inherit pname version;
|
rev = version;
|
||||||
sha256 = "6531a5fa9ea6bf27a5180d225558a8a7aa5d7c3cbf7e8b146dd37ac699017937";
|
sha256 = "1y3d6xw14rcldz9779ir6mjaff4rk82ch6ahn4y9mya0qglpc31i";
|
||||||
};
|
};
|
||||||
|
|
||||||
# no tests
|
checkInputs = [
|
||||||
doCheck = false;
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A specification that python filesystems should adhere to.";
|
description = "A specification that python filesystems should adhere to";
|
||||||
homepage = "https://github.com/intake/filesystem_spec";
|
homepage = https://github.com/intake/filesystem_spec;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,15 +6,28 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "imagecodecs-lite";
|
pname = "imagecodecs-lite";
|
||||||
version = "2019.4.20";
|
version = "2019.12.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1cp88g7g91gdhjhaz6gvb4jzvi5ad817id9f2bnc5r95ag93bqb0";
|
sha256 = "0s4xb17qd7vimc46rafbjnibj4sf0lnv8cwl22k1h6zb7jhqmlcm";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
nativeBuildInputs = [
|
||||||
propagatedBuildInputs = [ numpy cython ];
|
cython
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
numpy
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Block-oriented, in-memory buffer transformation, compression, and decompression functions";
|
description = "Block-oriented, in-memory buffer transformation, compression, and decompression functions";
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
{ lib, fetchPypi, buildPythonPackage, isPy27
|
{ lib
|
||||||
, numpy, enum34, futures, pathlib
|
, fetchPypi
|
||||||
|
, buildPythonPackage
|
||||||
|
, isPy27
|
||||||
|
, numpy
|
||||||
|
, imagecodecs-lite
|
||||||
|
, enum34
|
||||||
|
, futures
|
||||||
|
, pathlib
|
||||||
, pytest
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -17,13 +24,23 @@ buildPythonPackage rec {
|
||||||
# Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles
|
# Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles
|
||||||
# and test data missing from PyPI tarball
|
# and test data missing from PyPI tarball
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
checkInputs = [ pytest ];
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest
|
pytest
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy ]
|
propagatedBuildInputs = [
|
||||||
++ lib.optionals isPy27 [ futures enum34 pathlib ];
|
numpy
|
||||||
|
imagecodecs-lite
|
||||||
|
] ++ lib.optionals isPy27 [
|
||||||
|
futures
|
||||||
|
enum34
|
||||||
|
pathlib
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Read and write image data from and to TIFF files.";
|
description = "Read and write image data from and to TIFF files.";
|
||||||
|
|
Loading…
Reference in a new issue