mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
Merge pull request #116570 from dnr/gphotos-sync
This commit is contained in:
27
pkgs/development/python-modules/baseline/default.nix
Normal file
27
pkgs/development/python-modules/baseline/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "baseline";
|
||||
version = "1.2.1";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dmgass";
|
||||
repo = "baseline";
|
||||
rev = "95a0b71806ed16310eb0f27bc48aa5e21f731423";
|
||||
sha256 = "0qjg46ipyfjflvjqzqr5p7iylwwqn2mhhrq952d01vi8wvfds10d";
|
||||
};
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Easy String Baseline";
|
||||
longDescription = ''
|
||||
This tool streamlines creation and maintenance of tests which compare
|
||||
string output against a baseline.
|
||||
'';
|
||||
homepage = "https://github.com/dmgass/baseline";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dnr ];
|
||||
};
|
||||
}
|
||||
30
pkgs/development/python-modules/exif/default.nix
Normal file
30
pkgs/development/python-modules/exif/default.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, plum-py, pytestCheckHook, baseline }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "exif";
|
||||
version = "1.2.0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "TNThieding";
|
||||
repo = "exif";
|
||||
rev = "686857c677f489759db90b1ad61fa1cc1cac5f9a";
|
||||
sha256 = "0z2if23kmi0iyxviz32mlqs997i3dqpqfz6nznlwkhkkb6rkwwnh";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ plum-py ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "plum-py==0.3.1" "plum-py>=0.3.1"
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook baseline ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Read and modify image EXIF metadata using Python";
|
||||
homepage = "https://gitlab.com/TNThieding/exif";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dnr ];
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/plum-py/default.nix
Normal file
29
pkgs/development/python-modules/plum-py/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitLab, isPy3k, pytest, baseline }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "plum-py";
|
||||
version = "0.4.0";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "dangass";
|
||||
repo = "plum";
|
||||
rev = "6a9ff863c0e9fa21f7b2230d25402155a5522e4b";
|
||||
sha256 = "1iv62yb704c61b0dvsmyp3j6xpbmay532g9ny4pw4zbg3l69vd5j";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/plum/int/flag/_flag.py \
|
||||
--replace 'if sys.version_info < (3, 7):' 'if True:'
|
||||
'';
|
||||
|
||||
checkInputs = [ pytest baseline ];
|
||||
checkPhase = "pytest tests";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Classes and utilities for packing/unpacking bytes";
|
||||
homepage = "https://plum-py.readthedocs.io/en/latest/index.html";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ dnr ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user