Merge remote-tracking branch 'upstream/master' into HEAD
This commit is contained in:
22
pkgs/development/python-modules/httmock/default.nix
Normal file
22
pkgs/development/python-modules/httmock/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, requests }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "httmock";
|
||||
version = "1.2.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "patrys";
|
||||
repo = "httmock";
|
||||
rev = version;
|
||||
sha256 = "0iya8qsb2jm03s9p6sf1yzgm1irxl3dcq0k0a9ygl0skzjz5pvab";
|
||||
};
|
||||
|
||||
checkInputs = [ requests ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A mocking library for requests";
|
||||
homepage = https://github.com/patrys/httmock;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
@@ -1,28 +1,42 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, fetchPypi
|
||||
, pillow
|
||||
, psutil
|
||||
, pytest
|
||||
, numpy
|
||||
, isPy3k
|
||||
, futures
|
||||
, enum34
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "imageio";
|
||||
version = "1.6";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/imageio/imageio/archive/v${version}.tar.gz";
|
||||
sha256 = "195snkk3fsbjqd5g1cfsd9alzs5q45gdbi2ka9ph4yxqb31ijrbv";
|
||||
src = fetchPypi {
|
||||
sha256 = "0jjiwf6wjipmykh33prjh448qv8mpgngfi77ndc7mym5r1xhgf0n";
|
||||
inherit pname version;
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
checkInputs = [ pytest psutil ];
|
||||
propagatedBuildInputs = [ numpy pillow ] ++ stdenv.lib.optionals (!isPy3k) [
|
||||
futures
|
||||
enum34
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
export IMAGEIO_USERDIR="$TMP"
|
||||
export IMAGEIO_NO_INTERNET="true"
|
||||
export HOME="$(mktemp -d)"
|
||||
py.test
|
||||
'';
|
||||
|
||||
# Tries to write in /var/tmp/.imageio
|
||||
doCheck = false;
|
||||
# For some reason, importing imageio also imports xml on Nix, see
|
||||
# https://github.com/imageio/imageio/issues/395
|
||||
postPatch = ''
|
||||
substituteInPlace tests/test_meta.py --replace '"urllib",' "\"urllib\",\"xml\""
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library for reading and writing a wide range of image, video, scientific, and volumetric data formats";
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
, numpy
|
||||
, decorator
|
||||
, imageio
|
||||
, isPy3k
|
||||
, tqdm
|
||||
}:
|
||||
|
||||
|
||||
22
pkgs/development/python-modules/python-gitlab/default.nix
Normal file
22
pkgs/development/python-modules/python-gitlab/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, requests, six, mock, httmock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-gitlab";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "20ceb9232f9a412ce6554056a6b5039013d0755261d57b5c8ada7035773de795";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests six ];
|
||||
|
||||
checkInputs = [ mock httmock ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Interact with GitLab API";
|
||||
homepage = https://github.com/python-gitlab/python-gitlab;
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user