Merge pull request #76664 from costrouc/python-fsspec-update

python3Packages.fsspec: 0.5.2 -> 0.6.2 enable tests
This commit is contained in:
Frederik Rietdijk 2019-12-30 18:10:17 +01:00 committed by GitHub
commit 3af601f37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 27 deletions

@ -1,22 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, tox
, fetchFromGitHub
, pytest
, pytestcov
, pytest_xdist
, pytest-django
, mock
}:
buildPythonPackage rec {
pname = "diskcache";
version = "4.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "bcee5a59f9c264e2809e58d01be6569a3bbb1e36a1e0fb83f7ef9b2075f95ce0";
src = fetchFromGitHub {
owner = "grantjenks";
repo = "python-diskcache";
rev = "v${version}";
sha256 = "0xy2vpk4hixb4gg871d9sx9wxdz8pi0pmnfdwg4bf8jqfjg022w8";
};
checkInputs = [
tox
pytest
pytestcov
pytest_xdist
pytest-django
mock
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Disk and file backed persistent cache";
homepage = "http://www.grantjenks.com/docs/diskcache/";

@ -1,26 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, fetchFromGitHub
, isPy27
, pytest
}:
buildPythonPackage rec {
pname = "fsspec";
version = "0.5.2";
version = "0.6.2";
disabled = isPy27;
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "6531a5fa9ea6bf27a5180d225558a8a7aa5d7c3cbf7e8b146dd37ac699017937";
src = fetchFromGitHub {
owner = "intake";
repo = "filesystem_spec";
rev = version;
sha256 = "1y3d6xw14rcldz9779ir6mjaff4rk82ch6ahn4y9mya0qglpc31i";
};
# no tests
doCheck = false;
checkInputs = [
pytest
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "A specification that python filesystems should adhere to.";
homepage = "https://github.com/intake/filesystem_spec";
description = "A specification that python filesystems should adhere to";
homepage = https://github.com/intake/filesystem_spec;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}

@ -6,15 +6,28 @@
buildPythonPackage rec {
pname = "imagecodecs-lite";
version = "2019.4.20";
version = "2019.12.3";
src = fetchPypi {
inherit pname version;
sha256 = "1cp88g7g91gdhjhaz6gvb4jzvi5ad817id9f2bnc5r95ag93bqb0";
sha256 = "0s4xb17qd7vimc46rafbjnibj4sf0lnv8cwl22k1h6zb7jhqmlcm";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ numpy cython ];
nativeBuildInputs = [
cython
];
checkInputs = [
pytest
];
propagatedBuildInputs = [
numpy
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Block-oriented, in-memory buffer transformation, compression, and decompression functions";

@ -1,5 +1,12 @@
{ lib, fetchPypi, buildPythonPackage, isPy27
, numpy, enum34, futures, pathlib
{ lib
, fetchPypi
, buildPythonPackage
, isPy27
, numpy
, imagecodecs-lite
, enum34
, futures
, pathlib
, pytest
}:
@ -17,13 +24,23 @@ buildPythonPackage rec {
# Missing dependencies: imagecodecs, czifile, cmapfile, oiffile, lfdfiles
# and test data missing from PyPI tarball
doCheck = false;
checkInputs = [ pytest ];
checkInputs = [
pytest
];
checkPhase = ''
pytest
'';
propagatedBuildInputs = [ numpy ]
++ lib.optionals isPy27 [ futures enum34 pathlib ];
propagatedBuildInputs = [
numpy
imagecodecs-lite
] ++ lib.optionals isPy27 [
futures
enum34
pathlib
];
meta = with lib; {
description = "Read and write image data from and to TIFF files.";