2020-04-24 23:36:52 +00:00
|
|
|
{ lib, pkgs, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, numpy
|
|
|
|
, pyqt5
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qimage2ndarray";
|
2020-06-02 18:00:15 +00:00
|
|
|
version = "1.8.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-02 18:00:15 +00:00
|
|
|
sha256 = "b02bd2dc7de774f954544312ec1020cf2d7e03fdd23ec9eb79901da55ccb3365";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
pyqt5
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# no tests executed
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/hmeine/qimage2ndarray";
|
|
|
|
description = "A small python extension for quickly converting between QImages and numpy.ndarrays (in both directions)";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ tbenst ];
|
|
|
|
};
|
|
|
|
}
|