mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge master into staging-next
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 ];
|
||||
};
|
||||
}
|
||||
24
pkgs/development/python-modules/pathvalidate/default.nix
Normal file
24
pkgs/development/python-modules/pathvalidate/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pathvalidate";
|
||||
version = "2.4.1";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-PJvZTH7CPpz7IR/741audfl51sCZosdF7pSQ9STzJGg=";
|
||||
};
|
||||
|
||||
# Requires `pytest-md-report`, causing infinite recursion.
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "pathvalidate" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python library to sanitize/validate a string such as filenames/file-paths/etc";
|
||||
homepage = "https://github.com/thombashi/pathvalidate";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ oxalica ];
|
||||
};
|
||||
}
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
24
pkgs/development/python-modules/pysatochip/default.nix
Normal file
24
pkgs/development/python-modules/pysatochip/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pyscard, ecdsa, pyaes
|
||||
, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysatochip";
|
||||
version = "0.11.4";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-Jj/zZIS9aXmZ2xdi29Eun7iRIrIk9oBlrtN9+6opIMo=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyscard ecdsa pyaes ];
|
||||
|
||||
pythonImportsCheck = [ "pysatochip" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple python library to communicate with a Satochip hardware wallet";
|
||||
homepage = "https://github.com/Toporin/pysatochip";
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = with maintainers; [ oxalica ];
|
||||
};
|
||||
}
|
||||
@@ -44,7 +44,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "A small python module for wake on lan";
|
||||
homepage = "https://github.com/remcohaszing/pywakeonlan";
|
||||
license = licenses.wtfpl;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user