Merge pull request #109940 from dotlambda/Nikola-fix
pythonPackages.Nikola: fix
This commit is contained in:
commit
f9d90fdbbf
@ -1,28 +1,36 @@
|
||||
{ lib, stdenv, fetchurl, python3Packages }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, cloudpickle
|
||||
, pyinotify
|
||||
, macfsevents
|
||||
}:
|
||||
|
||||
let
|
||||
buildPythonPackage rec {
|
||||
pname = "doit";
|
||||
version = "0.33.1";
|
||||
|
||||
name = "doit";
|
||||
version = "0.32.0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
in python3Packages.buildPythonApplication {
|
||||
name = "${name}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/d/${name}/${name}-${version}.tar.gz";
|
||||
sha256 = "033m6y9763l81kgqd07rm62bngv3dsm3k9p28nwsn2qawl8h8g9j";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "37c3b35c2151647b968b2af24481112b2f813c30f695366db0639d529190a143";
|
||||
};
|
||||
|
||||
buildInputs = with python3Packages; [ mock pytest ];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ cloudpickle ]
|
||||
propagatedBuildInputs = [ cloudpickle ]
|
||||
++ lib.optional stdenv.isLinux pyinotify
|
||||
++ lib.optional stdenv.isDarwin macfsevents;
|
||||
|
||||
# Tests fail due to mysterious gdbm.open() resource temporarily
|
||||
# unavailable errors.
|
||||
doCheck = false;
|
||||
checkPhase = "py.test";
|
||||
checkInputs = [ mock pytestCheckHook ];
|
||||
|
||||
disabledTests = [
|
||||
# depends on doit-py, which has a circular dependency on doit
|
||||
"test___main__.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pydoit.org/";
|
||||
@ -36,6 +44,5 @@ in python3Packages.buildPythonApplication {
|
||||
available.
|
||||
'';
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -1,18 +1,28 @@
|
||||
{ lib, stdenv, buildPythonPackage, fetchPypi, pillow }:
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pillow }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "piexif";
|
||||
version = "1.1.3";
|
||||
|
||||
# patch does not apply to PyPI sdist due to different line endings
|
||||
src = fetchFromGitHub {
|
||||
owner = "hMatoba";
|
||||
repo = "Piexif";
|
||||
rev = version;
|
||||
sha256 = "1akmaxq1cjr8wghwaaql1bd3sajl8psshl58lprgfsigrvnklp8b";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix tests with Pillow >= 7.2.0: https://github.com/hMatoba/Piexif/pull/109
|
||||
(fetchpatch {
|
||||
url = "https://github.com/hMatoba/Piexif/commit/5209b53e9689ce28dcd045f384633378d619718f.patch";
|
||||
sha256 = "0ak571jf76r1vszp2g3cd5c16fz2zkbi43scayy933m5qdrhd8g1";
|
||||
})
|
||||
];
|
||||
|
||||
# Pillow needed for unit tests
|
||||
checkInputs = [ pillow ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "06sz58q4mrw472p8fbnq7wsj8zpi5js5r8phm2hiwfmz0v33bjw3";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simplify Exif manipulations with Python";
|
||||
homepage = "https://github.com/hMatoba/Piexif";
|
||||
|
@ -11969,7 +11969,7 @@ in
|
||||
|
||||
doctl = callPackage ../development/tools/doctl { };
|
||||
|
||||
doit = callPackage ../development/tools/build-managers/doit { };
|
||||
doit = with python3Packages; toPythonApplication doit;
|
||||
|
||||
dolt = callPackage ../servers/sql/dolt { };
|
||||
|
||||
|
@ -1933,6 +1933,8 @@ in {
|
||||
|
||||
dogtail = callPackage ../development/python-modules/dogtail { };
|
||||
|
||||
doit = callPackage ../development/python-modules/doit { };
|
||||
|
||||
dominate = callPackage ../development/python-modules/dominate { };
|
||||
|
||||
dopy = callPackage ../development/python-modules/dopy { };
|
||||
|
Loading…
Reference in New Issue
Block a user