Merge branch 'master' into staging
Nontrivial rebuilds from master, again :-/
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ stdenv, buildPythonPackage, python, fetchurl
|
||||
, django_environ, mock, django, six
|
||||
, pytest, pytestrunner, pytestdjango, setuptools_scm
|
||||
, pytest, pytestrunner, pytest-django, setuptools_scm
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
name = "django-guardian-${version}";
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
sha256 = "1r3xj0ik0hh6dfak4kjndxk5v73x95nfbppgr394nhnmiayv4zc5";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest pytestrunner pytestdjango django_environ mock setuptools_scm ];
|
||||
buildInputs = [ pytest pytestrunner pytest-django django_environ mock setuptools_scm ];
|
||||
propagatedBuildInputs = [ django six ];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
28
pkgs/development/python-modules/pyGithub/default.nix
Normal file
28
pkgs/development/python-modules/pyGithub/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv, fetchFromGitHub
|
||||
, cacert
|
||||
, buildPythonPackage, python-jose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "PyGithub-${version}";
|
||||
version = "1.32";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PyGithub";
|
||||
repo = "PyGithub";
|
||||
rev = "v${version}";
|
||||
sha256 = "15dr9ja63zdxax9lg6q2kcakqa82dpffyhgpjr13wq3sfkcy5pdw";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# requires network
|
||||
echo "" > github/tests/Issue142.py
|
||||
'';
|
||||
propagatedBuildInputs = [ python-jose ];
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/PyGithub/PyGithub";
|
||||
description = "A Python (2 and 3) library to access the GitHub API v3";
|
||||
platforms = platforms.all;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ jhhuh ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/pycassa/default.nix
Normal file
26
pkgs/development/python-modules/pycassa/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, thrift, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycassa";
|
||||
version = "1.11.2";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1nsqjzgn6v0rya60dihvbnrnq1zwaxl2qwf0sr08q9qlkr334hr6";
|
||||
};
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
# Tests are not executed since they require a cassandra up and
|
||||
# running
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ thrift ];
|
||||
|
||||
meta = {
|
||||
description = "A python client library for Apache Cassandra";
|
||||
homepage = http://github.com/pycassa/pycassa;
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
@@ -1,29 +1,24 @@
|
||||
{ stdenv, lib, fetchurl, buildPythonPackage, python, smpeg, libX11
|
||||
, SDL, SDL_image, SDL_mixer, SDL_ttf, libpng, libjpeg, portmidi, isPy3k,
|
||||
, SDL, SDL_image, SDL_mixer, SDL_ttf, libpng, libjpeg, portmidi, freetype
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "pygame-${version}";
|
||||
version = "1.9.1";
|
||||
version = "1.9.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz";
|
||||
sha256 = "0cyl0ww4fjlf289pjxa53q4klyn55ajvkgymw0qrdgp4593raq52";
|
||||
url = "mirror://pypi/p/pygame/pygame-${version}.tar.gz";
|
||||
sha256 = "1hlydiyygl444bq5m5g8n3jsxsgrdyxlm42ipmfbw36wkf0j243m";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
SDL SDL_image SDL_mixer SDL_ttf libpng libjpeg
|
||||
smpeg portmidi libX11
|
||||
portmidi libX11 freetype
|
||||
];
|
||||
|
||||
# http://ubuntuforums.org/showthread.php?t=1960262
|
||||
disabled = isPy3k;
|
||||
|
||||
# Tests fail because of no audio device and display.
|
||||
doCheck = false;
|
||||
|
||||
patches = [ ./pygame-v4l.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
sed \
|
||||
-e "s/^origincdirs = .*/origincdirs = []/" \
|
||||
|
||||
33
pkgs/development/python-modules/pytest-django/default.nix
Normal file
33
pkgs/development/python-modules/pytest-django/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl
|
||||
, pytest, django, setuptools_scm
|
||||
, fetchpatch
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
name = "pytest-django-${version}";
|
||||
version = "3.1.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/pytest-django/${name}.tar.gz";
|
||||
sha256 = "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest setuptools_scm ];
|
||||
propagatedBuildInputs = [ django ];
|
||||
|
||||
patches = [
|
||||
# Unpin setuptools-scm
|
||||
(fetchpatch {
|
||||
url = "https://github.com/pytest-dev/pytest-django/commit/25cbc3b395dcdeb92bdc9414e296680c2b9d602e.patch";
|
||||
sha256 = "1mx06y4kz2zs41mb2h9bh5p4jc6s6hfsq6fghhsks5b7qak05xjp";
|
||||
})
|
||||
];
|
||||
|
||||
# Complicated. Requires Django setup.
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "py.test plugin for testing of Django applications";
|
||||
homepage = http://pytest-django.readthedocs.org/en/latest/;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
29
pkgs/development/python-modules/python-jose/default.nix
Normal file
29
pkgs/development/python-modules/python-jose/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||
, future, six, ecdsa, pycryptodome, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "python-jose-${version}";
|
||||
version = "1.3.2";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mpdavis";
|
||||
repo = "python-jose";
|
||||
rev = version;
|
||||
sha256 = "0933pbflv2pvws5m0ksz8y1fqr8m123smmrbr5k9a71nssd502sv";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
checkPhase = "py.test .";
|
||||
patches = [
|
||||
# to use pycryptodme instead of pycrypto
|
||||
./pycryptodome.patch
|
||||
];
|
||||
propagatedBuildInputs = [ future six ecdsa pycryptodome ];
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/mpdavis/python-jose";
|
||||
description = "A JOSE implementation in Python";
|
||||
platforms = platforms.all;
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.jhhuh ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
diff -ru python-jose-1.3.2/requirements.txt python-jose-1.3.2.new/requirements.txt
|
||||
--- python-jose-1.3.2/requirements.txt 2016-09-05 15:13:49.000000000 +0200
|
||||
+++ python-jose-1.3.2.new/requirements.txt 2017-03-15 11:35:47.118001810 +0100
|
||||
@@ -1,3 +1,3 @@
|
||||
-pycrypto
|
||||
+pycryptodome
|
||||
six
|
||||
future
|
||||
diff -ru python-jose-1.3.2/setup.py python-jose-1.3.2.new/setup.py
|
||||
--- python-jose-1.3.2/setup.py 2016-09-05 15:13:49.000000000 +0200
|
||||
+++ python-jose-1.3.2.new/setup.py 2017-03-15 11:37:15.725077184 +0100
|
||||
@@ -25,12 +25,8 @@
|
||||
|
||||
|
||||
def get_install_requires():
|
||||
- if platform.python_implementation() == 'PyPy':
|
||||
- crypto_lib = 'pycryptodome >=3.3.1, <3.4.0'
|
||||
- else:
|
||||
- crypto_lib = 'pycrypto >=2.6.0, <2.7.0'
|
||||
return [
|
||||
- crypto_lib,
|
||||
+ 'pycryptodome >=3.3.1, <3.5.0',
|
||||
'six <2.0',
|
||||
'ecdsa <1.0',
|
||||
'future <1.0',
|
||||
diff -ru python-jose-1.3.2/tox.ini python-jose-1.3.2.new/tox.ini
|
||||
--- python-jose-1.3.2/tox.ini 2016-09-05 15:13:49.000000000 +0200
|
||||
+++ python-jose-1.3.2.new/tox.ini 2017-03-15 11:36:50.423055657 +0100
|
||||
@@ -6,7 +6,7 @@
|
||||
py.test --cov-report term-missing --cov jose
|
||||
deps =
|
||||
future
|
||||
- pycrypto
|
||||
+ pycryptodome
|
||||
ecdsa
|
||||
pytest
|
||||
pytest-cov
|
||||
Reference in New Issue
Block a user