mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #220465 from dansbandit/python-djvulibre
python3Packages.python-djvulibre: init at 0.9.0
This commit is contained in:
commit
e7958ec8a5
55
pkgs/development/python-modules/python-djvulibre/default.nix
Normal file
55
pkgs/development/python-modules/python-djvulibre/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, djvulibre
|
||||
, ghostscript_headless
|
||||
, packaging
|
||||
, pkg-config
|
||||
, requests
|
||||
, setuptools
|
||||
, unittestCheckHook
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-djvulibre";
|
||||
version = "0.9.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FriedrichFroebel";
|
||||
repo = "python-djvulibre";
|
||||
rev = version;
|
||||
hash = "sha256-OrOZFvzDEBwBmIc+i3LjNTh6K2vhe6NWtSJrFTSkrgA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
packaging
|
||||
pkg-config
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
djvulibre
|
||||
ghostscript_headless
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
rm -rf djvu
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
unittestFlagsArray = [ "tests" "-v" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python support for the DjVu image format";
|
||||
homepage = "https://github.com/FriedrichFroebel/python-djvulibre";
|
||||
license = licenses.gpl2Only;
|
||||
changelog = "https://github.com/FriedrichFroebel/python-djvulibre/releases/tag/${version}";
|
||||
maintainers = with maintainers; [ dansbandit ];
|
||||
};
|
||||
}
|
@ -9489,6 +9489,8 @@ self: super: with self; {
|
||||
|
||||
python-csxcad = callPackage ../development/python-modules/python-csxcad { };
|
||||
|
||||
python-djvulibre = callPackage ../development/python-modules/python-djvulibre { };
|
||||
|
||||
python-ecobee-api = callPackage ../development/python-modules/python-ecobee-api { };
|
||||
|
||||
python-flirt = callPackage ../development/python-modules/python-flirt { };
|
||||
|
Loading…
Reference in New Issue
Block a user