python3Packages.jpylyzer: 2.0.1 -> 2.1.0
This commit is contained in:
parent
264b2d17ea
commit
d7626595e8
1 changed files with 29 additions and 4 deletions
|
@ -1,26 +1,51 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, six
|
, six
|
||||||
|
, lxml
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
let
|
||||||
|
# unclear relationship between test-files version and jpylyzer version.
|
||||||
|
# upstream appears to just always test against the latest version, so
|
||||||
|
# probably worth updating this when package is bumped.
|
||||||
|
testFiles = fetchFromGitHub {
|
||||||
|
owner = "openpreserve";
|
||||||
|
repo = "jpylyzer-test-files";
|
||||||
|
rev = "146cb0029b5ea9d8ef22dc6683cec8afae1cc63a";
|
||||||
|
sha256 = "sha256-uKUau7mYXqGs4dSnXGPnPsH9k81ZCK0aPj5F9HWBMZ8=";
|
||||||
|
};
|
||||||
|
|
||||||
|
in buildPythonPackage rec {
|
||||||
pname = "jpylyzer";
|
pname = "jpylyzer";
|
||||||
version = "2.0.1";
|
version = "2.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "openpreserve";
|
owner = "openpreserve";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1cd9klq83g9p4nkg7x78axqid5vcsqzggp431hcfdiixa50yjxjg";
|
sha256 = "sha256-LBVOwjWC/HEvGgoi8WxEdl33M4JrfdHEj1Dk7f1NAiA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [ pytestCheckHook lxml ];
|
||||||
|
|
||||||
|
# don't depend on testFiles on darwin as it may not be extractable due to
|
||||||
|
# weird filenames
|
||||||
|
preCheck = lib.optionalString (!stdenv.isDarwin) ''
|
||||||
|
sed -i '/^testFilesDir = /ctestFilesDir = "${testFiles}"' tests/unit/test_testfiles.py
|
||||||
|
'';
|
||||||
|
disabledTestPaths = lib.optionals stdenv.isDarwin [
|
||||||
|
"tests/unit/test_testfiles.py"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "jpylyzer" ];
|
pythonImportsCheck = [ "jpylyzer" ];
|
||||||
|
|
||||||
|
disallowedReferences = [ testFiles ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "JP2 (JPEG 2000 Part 1) image validator and properties extractor";
|
description = "JP2 (JPEG 2000 Part 1) image validator and properties extractor";
|
||||||
homepage = "https://jpylyzer.openpreservation.org/";
|
homepage = "https://jpylyzer.openpreservation.org/";
|
||||||
|
|
Loading…
Reference in a new issue