Merge pull request #109940 from dotlambda/Nikola-fix
pythonPackages.Nikola: fix
This commit is contained in:
48
pkgs/development/python-modules/doit/default.nix
Normal file
48
pkgs/development/python-modules/doit/default.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, cloudpickle
|
||||
, pyinotify
|
||||
, macfsevents
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "doit";
|
||||
version = "0.33.1";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "37c3b35c2151647b968b2af24481112b2f813c30f695366db0639d529190a143";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cloudpickle ]
|
||||
++ lib.optional stdenv.isLinux pyinotify
|
||||
++ lib.optional stdenv.isDarwin macfsevents;
|
||||
|
||||
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/";
|
||||
description = "A task management & automation tool";
|
||||
license = licenses.mit;
|
||||
longDescription = ''
|
||||
doit is a modern open-source build-tool written in python
|
||||
designed to be simple to use and flexible to deal with complex
|
||||
work-flows. It is specially suitable for building and managing
|
||||
custom work-flows where there is no out-of-the-box solution
|
||||
available.
|
||||
'';
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user