2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-07-06 18:36:21 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, six
|
2020-07-28 19:06:59 +01:00
|
|
|
, pytestCheckHook
|
2019-07-06 18:36:21 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jpylyzer";
|
2020-07-28 19:06:59 +01:00
|
|
|
version = "2.0.0";
|
2019-07-06 18:36:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openpreserve";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-07-28 19:06:59 +01:00
|
|
|
sha256 = "01wfbb1bgby9b7m6q7483kvpyc1qhj80dg8d5a6smcxvmy8y6x5n";
|
2019-07-06 18:36:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2020-07-28 19:06:59 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "jpylyzer" ];
|
2019-07-06 18:36:21 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-06 18:36:21 +01:00
|
|
|
description = "JP2 (JPEG 2000 Part 1) image validator and properties extractor";
|
|
|
|
homepage = "https://jpylyzer.openpreservation.org/";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ ris ];
|
|
|
|
};
|
|
|
|
}
|