Python: add pname attributes to libraries

so that we can use the update script.
This commit is contained in:
Frederik Rietdijk 2017-05-27 11:25:35 +02:00
parent dce1c26e5d
commit 959842a9c7
95 changed files with 265 additions and 152 deletions

View File

@ -2,8 +2,9 @@
asgiref, msgpack, posix_ipc asgiref, msgpack, posix_ipc
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "asgi_ipc-${version}";
version = "1.3.1"; version = "1.3.1";
pname = "asgi_ipc";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/a/asgi_ipc/${name}.tar.gz"; url = "mirror://pypi/a/asgi_ipc/${name}.tar.gz";

View File

@ -2,8 +2,9 @@
asgiref, asgi_ipc, msgpack, six, redis, cryptography asgiref, asgi_ipc, msgpack, six, redis, cryptography
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "asgi_redis-${version}";
version = "1.3.0"; version = "1.3.0";
pname = "asgi_redis";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/a/asgi_redis/${name}.tar.gz"; url = "mirror://pypi/a/asgi_redis/${name}.tar.gz";

View File

@ -1,7 +1,8 @@
{ stdenv, buildPythonPackage, fetchurl, six }: { stdenv, buildPythonPackage, fetchurl, six }:
buildPythonPackage rec { buildPythonPackage rec {
name = "asgiref-${version}";
version = "1.1.1"; version = "1.1.1";
pname = "asgiref";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/a/asgiref/${name}.tar.gz"; url = "mirror://pypi/a/asgiref/${name}.tar.gz";

View File

@ -1,8 +1,9 @@
{ stdenv, buildPythonPackage, fetchurl, { stdenv, buildPythonPackage, fetchurl,
m2r, setuptools_scm, six, attrs }: m2r, setuptools_scm, six, attrs }:
buildPythonPackage rec { buildPythonPackage rec {
name = "Automat-${version}";
version = "0.5.0"; version = "0.5.0";
pname = "Automat";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/A/Automat/${name}.tar.gz"; url = "mirror://pypi/A/Automat/${name}.tar.gz";

View File

@ -1,8 +1,9 @@
{stdenv, buildPythonPackage, fetchFromGitHub, bap, requests}: {stdenv, buildPythonPackage, fetchFromGitHub, bap, requests}:
buildPythonPackage rec { buildPythonPackage rec {
name = "bap"; pname = "bap";
version = "1.1.0"; version = "1.1.0";
name = "${pname}-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BinaryAnalysisPlatform"; owner = "BinaryAnalysisPlatform";
repo = "bap-python"; repo = "bap-python";

View File

@ -4,8 +4,9 @@
with stdenv.lib; with stdenv.lib;
buildPythonPackage rec { buildPythonPackage rec {
name = "bcrypt-${version}";
version = "3.1.2"; version = "3.1.2";
pname = "bcrypt";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/b/bcrypt/${name}.tar.gz"; url = "mirror://pypi/b/bcrypt/${name}.tar.gz";

View File

@ -7,7 +7,8 @@ let
selinuxWithPython = libselinux.override pyenable; selinuxWithPython = libselinux.override pyenable;
cryptsetupWithPython = cryptsetup.override pyenable; cryptsetupWithPython = cryptsetup.override pyenable;
in buildPythonPackage rec { in buildPythonPackage rec {
name = "blivet-${version}"; pname = "blivet";
name = "${pname}-${version}";
version = "0.67"; version = "0.67";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -1,8 +1,9 @@
{ lib, fetchurl, buildPythonPackage, docutils, six, sphinx, isPy3k }: { lib, fetchurl, buildPythonPackage, docutils, six, sphinx, isPy3k }:
buildPythonPackage rec { buildPythonPackage rec {
name = "breathe-${version}";
version = "4.2.0"; version = "4.2.0";
pname = "breathe";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/b/breathe/${name}.tar.gz"; url = "mirror://pypi/b/breathe/${name}.tar.gz";

View File

@ -2,7 +2,8 @@
asgiref, django, daphne asgiref, django, daphne
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "channels-${version}"; pname = "channels";
name = "${pname}-${version}";
version = "1.1.3"; version = "1.1.3";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,8 @@
{ stdenv, buildPythonPackage, fetchurl { stdenv, buildPythonPackage, fetchurl
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "constantly-${version}"; pname = "constantly";
name = "${pname}-${version}";
version = "15.1.0"; version = "15.1.0";
src = fetchurl { src = fetchurl {

View File

@ -2,7 +2,8 @@
asgiref, autobahn, twisted, hypothesis asgiref, autobahn, twisted, hypothesis
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "daphne-${version}"; pname = "daphne";
name = "${pname}-${version}";
version = "1.2.0"; version = "1.2.0";
src = fetchurl { src = fetchurl {

View File

@ -1,6 +1,7 @@
{ stdenv, buildPythonPackage, fetchurl, six }: { stdenv, buildPythonPackage, fetchurl, six }:
buildPythonPackage rec { buildPythonPackage rec {
name = "dateutil-${version}"; pname = "dateutil";
name = "${pname}-${version}";
version = "2.6.0"; version = "2.6.0";
src = fetchurl { src = fetchurl {

View File

@ -2,7 +2,9 @@
, ncurses, pygobject3 }: , ncurses, pygobject3 }:
if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else buildPythonPackage rec { if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else buildPythonPackage rec {
name = "dbus-python-1.2.4"; pname = "dbus-python";
version = "1.2.4";
name = "${pname}-${version}";
format = "other"; format = "other";
src = fetchurl { src = fetchurl {

View File

@ -2,7 +2,8 @@
django, django_nose, six django, django_nose, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "django-compat-${version}"; pname = "django-compat";
name = "${pname}-${version}";
version = "1.0.14"; version = "1.0.14";
src = fetchurl { src = fetchurl {

View File

@ -3,8 +3,9 @@
pyparsing, django, celery pyparsing, django, celery
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "django-raster-${version}";
version = "0.3.1"; version = "0.3.1";
pname = "django-raster";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/d/django-raster/${name}.tar.gz"; url = "mirror://pypi/d/django-raster/${name}.tar.gz";

View File

@ -3,7 +3,8 @@
geos, gdal geos, gdal
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "Django-${version}"; pname = "Django";
name = "${pname}-${version}";
version = "1.10.7"; version = "1.10.7";
disabled = pythonOlder "2.7"; disabled = pythonOlder "2.7";

View File

@ -3,8 +3,10 @@
geos, gdal, pytz geos, gdal, pytz
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "Django-${version}"; pname = "Django";
name = "${pname}-${version}";
version = "1.11.1"; version = "1.11.1";
disabled = pythonOlder "2.7"; disabled = pythonOlder "2.7";
src = fetchurl { src = fetchurl {

View File

@ -3,7 +3,8 @@
, pytest, pytestrunner, pytest-django, setuptools_scm , pytest, pytestrunner, pytest-django, setuptools_scm
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "django-guardian-${version}"; pname = "django-guardian";
name = "${pname}-${version}";
version = "1.4.8"; version = "1.4.8";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,8 @@
{ stdenv, buildPythonPackage, fetchurl, django }: { stdenv, buildPythonPackage, fetchurl, django }:
buildPythonPackage rec { buildPythonPackage rec {
name = "djangorestframework-${version}";
version = "3.5.4"; version = "3.5.4";
pname = "djangorestframework";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/d/djangorestframework/${name}.tar.gz"; url = "mirror://pypi/d/djangorestframework/${name}.tar.gz";

View File

@ -3,8 +3,9 @@
, ipaddress, backports_ssl_match_hostname, docker_pycreds , ipaddress, backports_ssl_match_hostname, docker_pycreds
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "docker-${version}";
version = "2.0.2"; version = "2.0.2";
pname = "docker";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/d/docker/${name}.tar.gz"; url = "mirror://pypi/d/docker/${name}.tar.gz";

View File

@ -7,7 +7,8 @@
}: }:
buildPythonApplication rec { buildPythonApplication rec {
version = "1.10.0"; version = "1.10.0";
name = "docker-compose-${version}"; pname = "docker-compose";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/d/docker-compose/${name}.tar.gz"; url = "mirror://pypi/d/docker-compose/${name}.tar.gz";

View File

@ -4,7 +4,8 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "ds4drv-${version}"; pname = "ds4drv";
name = "${pname}-${version}";
version = "0.5.1"; version = "0.5.1";
# PyPi only carries py3 wheel # PyPi only carries py3 wheel

View File

@ -3,8 +3,9 @@
, git, glibcLocales }: , git, glibcLocales }:
buildPythonPackage rec { buildPythonPackage rec {
name = "dulwich-${version}";
version = "0.14.1"; version = "0.14.1";
pname = "dulwich";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/d/dulwich/${name}.tar.gz"; url = "mirror://pypi/d/dulwich/${name}.tar.gz";

View File

@ -2,7 +2,8 @@
buildPythonPackage rec { buildPythonPackage rec {
version = "0.8.1"; version = "0.8.1";
name = "ezdxf-${version}"; pname = "ezdxf";
name = "${pname}-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mozman"; owner = "mozman";

View File

@ -1,7 +1,9 @@
{ stdenv, buildPythonPackage, glibcLocales, fetchurl, six, pytz }: { stdenv, buildPythonPackage, glibcLocales, fetchurl, six, pytz }:
buildPythonPackage rec { buildPythonPackage rec {
name = "feedgenerator-1.9"; pname = "feedgenerator";
version = "1.9";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/f/feedgenerator/${name}.tar.gz"; url = "mirror://pypi/f/feedgenerator/${name}.tar.gz";

View File

@ -1,7 +1,8 @@
{ lib, fetchurl, buildPythonPackage }: { lib, fetchurl, buildPythonPackage }:
buildPythonPackage rec { buildPythonPackage rec {
name = "flake8-blind-except-${version}"; pname = "flake8-blind-except";
name = "${pname}-${version}";
version = "0.1.1"; version = "0.1.1";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/f/flake8-blind-except/${name}.tar.gz"; url = "mirror://pypi/f/flake8-blind-except/${name}.tar.gz";

View File

@ -1,7 +1,8 @@
{ lib, fetchurl, buildPythonPackage, flake8, nose }: { lib, fetchurl, buildPythonPackage, flake8, nose }:
buildPythonPackage rec { buildPythonPackage rec {
name = "flake8-debugger-${version}"; pname = "flake8-debugger";
name = "${pname}-${version}";
version = "1.4.0"; version = "1.4.0";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/f/flake8-debugger/${name}.tar.gz"; url = "mirror://pypi/f/flake8-debugger/${name}.tar.gz";

View File

@ -2,7 +2,8 @@
, flask, elasticsearch }: , flask, elasticsearch }:
buildPythonPackage rec { buildPythonPackage rec {
name = "Flask-Elastic-${version}"; pname = "Flask-Elastic";
name = "${pname}-${version}";
version = "0.2"; version = "0.2";
src = fetchurl { src = fetchurl {

View File

@ -3,7 +3,9 @@
, mock, nose }: , mock, nose }:
buildPythonPackage rec { buildPythonPackage rec {
name = "flask-ldap-login-0.3.0"; pname = "flask-ldap-login";
version = "0.3.0";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/f/flask-ldap-login/${name}.tar.gz"; url = "mirror://pypi/f/flask-ldap-login/${name}.tar.gz";

View File

@ -2,7 +2,8 @@
, flask, nose, mock, blinker}: , flask, nose, mock, blinker}:
buildPythonPackage rec { buildPythonPackage rec {
name = "Flask-Login-${version}"; pname = "Flask-Login";
name = "${pname}-${version}";
version = "0.4.0"; version = "0.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -2,7 +2,8 @@
, flask, oauthlib, requests_oauthlib, flask_sqlalchemy , flask, oauthlib, requests_oauthlib, flask_sqlalchemy
, mock, nose}: , mock, nose}:
buildPythonPackage rec { buildPythonPackage rec {
name = "Flask-OAuthlib-${version}"; pname = "Flask-OAuthlib";
name = "${pname}-${version}";
version = "0.9.3"; version = "0.9.3";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -1,7 +1,9 @@
{ stdenv, fetchurl, buildPythonPackage, flask, wtforms, nose }: { stdenv, fetchurl, buildPythonPackage, flask, wtforms, nose }:
buildPythonPackage rec { buildPythonPackage rec {
name = "Flask-WTF-0.14.2"; pname = "Flask-WTF";
version = "0.14.2";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/F/Flask-WTF/${name}.tar.gz"; url = "mirror://pypi/F/Flask-WTF/${name}.tar.gz";

View File

@ -2,7 +2,9 @@
, zope_testrunner, six, chardet}: , zope_testrunner, six, chardet}:
buildPythonPackage rec { buildPythonPackage rec {
name = "ghdiff-0.4"; pname = "ghdiff";
version = "0.4";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/g/ghdiff/${name}.tar.gz"; url = "mirror://pypi/g/ghdiff/${name}.tar.gz";

View File

@ -2,7 +2,9 @@
, pytest, mock, pytestcov, coverage }: , pytest, mock, pytestcov, coverage }:
buildPythonPackage rec { buildPythonPackage rec {
name = "gunicorn-19.3.0"; pname = "gunicorn";
version = "19.3.0";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/g/gunicorn/${name}.tar.gz"; url = "mirror://pypi/g/gunicorn/${name}.tar.gz";

View File

@ -11,8 +11,9 @@ let
mpiSupport = hdf5.mpiSupport; mpiSupport = hdf5.mpiSupport;
in buildPythonPackage rec { in buildPythonPackage rec {
name = "h5py-${version}";
version = "2.6.0"; version = "2.6.0";
pname = "h5py";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/h/h5py/${name}.tar.gz"; url = "mirror://pypi/h/h5py/${name}.tar.gz";

View File

@ -1,8 +1,9 @@
{ stdenv , fetchurl , buildPythonPackage , sphinx }: { stdenv , fetchurl , buildPythonPackage , sphinx }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "hieroglyph";
version = "0.7.1"; version = "0.7.1";
name = "hieroglyph-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/h/hieroglyph/${name}.tar.gz"; url = "mirror://pypi/h/hieroglyph/${name}.tar.gz";

View File

@ -9,8 +9,9 @@ buildPythonPackage rec {
# pytz fake_factory django numpy pytest # pytz fake_factory django numpy pytest
# If you need these, you can just add them to your environment. # If you need these, you can just add them to your environment.
name = "hypothesis-${version}";
version = "3.7.0"; version = "3.7.0";
pname = "hypothesis";
name = "${pname}-${version}";
# Upstream prefers github tarballs # Upstream prefers github tarballs
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -1,7 +1,9 @@
{ stdenv, buildPythonPackage, isPy3k, fetchurl, xmpppy }: { stdenv, buildPythonPackage, isPy3k, fetchurl, xmpppy }:
buildPythonPackage rec { buildPythonPackage rec {
name = "jabberbot-0.16"; pname = "jabberbot";
version = "0.16";
name = "${pname}-${version}";
disabled = isPy3k; disabled = isPy3k;
src = fetchurl { src = fetchurl {

View File

@ -1,6 +1,8 @@
{ stdenv, fetchurl, buildPythonApplication, EditorConfig, pytest, six }: { stdenv, fetchurl, buildPythonApplication, EditorConfig, pytest, six }:
buildPythonApplication rec { buildPythonApplication rec {
pname = "jsbeautifier";
version = "1.6.14";
name = "jsbeautifier-1.6.14"; name = "jsbeautifier-1.6.14";
propagatedBuildInputs = [ six ]; propagatedBuildInputs = [ six ];
@ -18,4 +20,4 @@ buildPythonApplication rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ apeyroux ]; maintainers = with maintainers; [ apeyroux ];
}; };
} }

View File

@ -1,7 +1,9 @@
{ stdenv, fetchurl, buildPythonPackage, pycurl }: { stdenv, fetchurl, buildPythonPackage, pycurl }:
buildPythonPackage rec { buildPythonPackage rec {
name = "koji-1.8"; pname = "koji";
version = "1.8";
name = "${pname}-${version}";
format = "other"; format = "other";
src = fetchurl { src = fetchurl {

View File

@ -2,7 +2,9 @@
, openldap, cyrus_sasl, openssl }: , openldap, cyrus_sasl, openssl }:
buildPythonPackage rec { buildPythonPackage rec {
name = "ldap-2.4.22"; pname = "python-ldap";
version = "2.4.22";
name = "${pname}-${version}";
disabled = isPy3k; disabled = isPy3k;
src = fetchurl { src = fetchurl {

View File

@ -2,7 +2,8 @@
six, pytest, pytestrunner, pytestcov, coverage six, pytest, pytestrunner, pytestcov, coverage
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "libais-${version}"; pname = "libais";
name = "${pname}-${version}";
version = "0.16"; version = "0.16";
src = fetchurl { src = fetchurl {

View File

@ -5,7 +5,8 @@ then throw "libArcus not supported for interpreter ${python.executable}"
else else
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libarcus-${version}"; pname = "libarcus";
name = "${pname}-${version}";
version = "2.4.0"; version = "2.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -2,7 +2,8 @@
, libasyncns, pkgconfig }: , libasyncns, pkgconfig }:
buildPythonPackage rec { buildPythonPackage rec {
name = "libasyncns-python-${version}"; pname = "libasyncns-python";
name = "${pname}-${version}";
version = "0.7.1"; version = "0.7.1";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,8 @@
{ stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk2, glib }: { stdenv, fetchurl, buildPythonPackage, libsexy, pkgconfig, libxml2, pygtk, pango, gtk2, glib }:
buildPythonPackage rec { buildPythonPackage rec {
name = "libsexy-${version}"; pname = "libsexy";
name = "${pname}-${version}";
version = "0.1.9"; version = "0.1.9";
format = "other"; format = "other";

View File

@ -1,7 +1,8 @@
{ stdenv, buildPythonPackage, fetchurl, { stdenv, buildPythonPackage, fetchurl,
mistune, docutils } : mistune, docutils } :
buildPythonPackage rec { buildPythonPackage rec {
name = "m2r-${version}"; pname = "m2r";
name = "${pname}-${version}";
version = "0.1.5"; version = "0.1.5";
src = fetchurl { src = fetchurl {

View File

@ -1,8 +1,9 @@
{ stdenv, buildPythonPackage, fetchurl }: { stdenv, buildPythonPackage, fetchurl }:
buildPythonPackage rec { buildPythonPackage rec {
name = "markdown2-${version}"; pname = "markdown2";
version = "2.3.1"; version = "2.3.1";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/m/markdown2/${name}.zip"; url = "mirror://pypi/m/markdown2/${name}.zip";

View File

@ -20,8 +20,9 @@ assert enableTk -> (tcl != null)
assert enableQt -> pyqt4 != null; assert enableQt -> pyqt4 != null;
buildPythonPackage rec { buildPythonPackage rec {
name = "matplotlib-${version}";
version = "2.0.0"; version = "2.0.0";
pname = "matplotlib";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/m/matplotlib/${name}.tar.gz"; url = "mirror://pypi/m/matplotlib/${name}.tar.gz";

View File

@ -1,7 +1,9 @@
{ stdenv, fetchurl, python, buildPythonPackage, mpi, openssh, isPy3k, isPyPy }: { stdenv, fetchurl, python, buildPythonPackage, mpi, openssh, isPy3k, isPyPy }:
buildPythonPackage rec { buildPythonPackage rec {
name = "mpi4py-1.3.1"; pname = "mpi4py";
version = "1.3.1";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "https://bitbucket.org/mpi4py/mpi4py/downloads/${name}.tar.gz"; url = "https://bitbucket.org/mpi4py/mpi4py/downloads/${name}.tar.gz";

View File

@ -2,7 +2,8 @@
, numpy, zlib, netcdf, hdf5, curl, libjpeg , numpy, zlib, netcdf, hdf5, curl, libjpeg
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "netCDF4-${version}"; pname = "netCDF4";
name = "${pname}-${version}";
version = "1.2.7"; version = "1.2.7";
disabled = isPyPy; disabled = isPyPy;

View File

@ -1,8 +1,9 @@
{ fetchurl, buildPythonPackage, isPy33, lib, six, pythonAtLeast, pythonOlder }: { fetchurl, buildPythonPackage, isPy33, lib, six, pythonAtLeast, pythonOlder }:
buildPythonPackage rec { buildPythonPackage rec {
name = "nltk-${version}";
version = "3.2.2"; version = "3.2.2";
pname = "nltk";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/n/nltk/nltk-${version}.tar.gz"; url = "mirror://pypi/n/nltk/nltk-${version}.tar.gz";

View File

@ -15,7 +15,8 @@
buildPythonPackage rec { buildPythonPackage rec {
version = "0.31.0"; version = "0.31.0";
name = "numba-${version}"; pname = "numba";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/n/numba/${name}.tar.gz"; url = "mirror://pypi/n/numba/${name}.tar.gz";

View File

@ -3,8 +3,9 @@
coverage, oslosphinx, oslotest, testscenarios, six, ddt coverage, oslosphinx, oslotest, testscenarios, six, ddt
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "os-testr-${version}";
version = "0.8.1"; version = "0.8.1";
pname = "os-testr";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/o/os-testr/${name}.tar.gz"; url = "mirror://pypi/o/os-testr/${name}.tar.gz";

View File

@ -5,7 +5,8 @@
, blinker, pillow, beautifulsoup4, markupsafe }: , blinker, pillow, beautifulsoup4, markupsafe }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pelican-${version}"; pname = "pelican";
name = "${pname}-${version}";
version = "3.7.1"; version = "3.7.1";
disabled = isPy26; disabled = isPy26;

View File

@ -1,6 +1,7 @@
{ stdenv, buildPythonPackage, fetchurl, pytest, mock }: { stdenv, buildPythonPackage, fetchurl, pytest, mock }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pep257-${version}"; pname = "pep257";
name = "${pname}-${version}";
version = "0.7.0"; version = "0.7.0";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,9 @@
{ stdenv, fetchurl, buildPythonPackage }: { stdenv, fetchurl, buildPythonPackage }:
buildPythonPackage rec { buildPythonPackage rec {
name = "phonenumbers-8.4.0"; pname = "phonenumbers";
version = "8.4.0";
name = "${pname}-${version}";
meta = { meta = {
description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers"; description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers";

View File

@ -1,8 +1,9 @@
{ stdenv, fetchurl, pkgconfig, at_spi2_core, pythonPackages }: { stdenv, fetchurl, pkgconfig, at_spi2_core, pythonPackages }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pyatspi";
version = "2.18.0"; version = "2.18.0";
name = "pyatspi-${version}"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/pyatspi/2.18/${name}.tar.xz"; url = "mirror://gnome/sources/pyatspi/2.18/${name}.tar.xz";

View File

@ -9,8 +9,9 @@ if (isPyPy) then throw "pycairo not supported for interpreter ${python.executabl
patch_waf-py3_5 = ./waf-py3_5.patch; patch_waf-py3_5 = ./waf-py3_5.patch;
in buildPythonPackage rec { in buildPythonPackage rec {
pname = "pycairo";
version = "1.10.0"; version = "1.10.0";
name = "pycairo-${version}"; name = "${pname}-${version}";
format = "other"; format = "other";
src = if isPy3k src = if isPy3k

View File

@ -2,7 +2,8 @@
buildPythonPackage rec { buildPythonPackage rec {
version = "3.4.3"; version = "3.4.3";
name = "pycryptodome-${version}"; pname = "pycryptodome";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/p/pycryptodome/${name}.tar.gz"; url = "mirror://pypi/p/pycryptodome/${name}.tar.gz";

View File

@ -1,9 +1,9 @@
{ stdenv, fetchurl, python, exiv2, scons, boost }: { stdenv, fetchurl, python, exiv2, scons, boost }:
let version = "0.3.2"; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "pyexiv2-${version}"; pname = "pyexiv2";
version = "0.3.2";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "http://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/${name}.tar.bz2"; url = "http://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/${name}.tar.bz2";

View File

@ -3,7 +3,8 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pygame-${version}"; pname = "pygame";
name = "${pname}-${version}";
version = "1.9.3"; version = "1.9.3";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,8 @@
{ buildPythonPackage, fetchurl, stdenv, libmemcached, zlib }: { buildPythonPackage, fetchurl, stdenv, libmemcached, zlib }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pylibmc-${version}";
version = "1.5.1"; version = "1.5.1";
pname = "pylibmc";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "https://pypi.python.org/packages/source/p/pylibmc/${name}.tar.gz"; url = "https://pypi.python.org/packages/source/p/pylibmc/${name}.tar.gz";

View File

@ -1,7 +1,9 @@
{ lib, buildPythonPackage, fetchurl, requests, novaclient, keyring, { lib, buildPythonPackage, fetchurl, requests, novaclient, keyring,
rackspace-novaclient, six, isPy3k, pytest, glibcLocales }: rackspace-novaclient, six, isPy3k, pytest, glibcLocales }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pyrax-1.9.8"; pname = "pyrax";
version = "1.9.8";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/p/pyrax/${name}.tar.gz"; url = "mirror://pypi/p/pyrax/${name}.tar.gz";

View File

@ -1,7 +1,9 @@
{stdenv, buildPythonPackage, fetchurl}: {stdenv, buildPythonPackage, fetchurl}:
buildPythonPackage rec { buildPythonPackage rec {
name = "pyroute2-0.4.13"; pname = "pyroute2";
version = "0.4.13";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/p/pyroute2/${name}.tar.gz"; url = "mirror://pypi/p/pyroute2/${name}.tar.gz";

View File

@ -1,8 +1,9 @@
{ stdenv, fetchurl, buildPythonPackage, swig, pcsclite }: { stdenv, fetchurl, buildPythonPackage, swig, pcsclite }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pyscard-${version}";
version = "1.9.4"; version = "1.9.4";
pname = "pyscard";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/p/pyscard/${name}.tar.gz"; url = "mirror://pypi/p/pyscard/${name}.tar.gz";

View File

@ -2,7 +2,8 @@
# This derivation provides a Python module and should therefore be called via `python-packages.nix`. # This derivation provides a Python module and should therefore be called via `python-packages.nix`.
buildPythonPackage rec { buildPythonPackage rec {
name = "pyside-${version}"; pname = "pyside";
name = "${pname}-${version}";
version = "1.2.4"; version = "1.2.4";
format = "other"; format = "other";

View File

@ -6,7 +6,8 @@
}: }:
buildPythonApplication rec { buildPythonApplication rec {
name = "pysrt-${version}"; pname = "pysrt";
name = "${pname}-${version}";
version = "1.1.1"; version = "1.1.1";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -3,7 +3,8 @@
, fetchpatch , fetchpatch
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pytest-django-${version}"; pname = "pytest-django";
name = "${pname}-${version}";
version = "3.1.2"; version = "3.1.2";
src = fetchurl { src = fetchurl {

View File

@ -10,7 +10,8 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pytest-httpbin-${version}"; pname = "pytest-httpbin";
name = "${pname}-${version}";
version = "0.2.3"; version = "0.2.3";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -1,6 +1,8 @@
{ stdenv, buildPythonPackage, fetchurl, pytest, pep257 }: { stdenv, buildPythonPackage, fetchurl, pytest, pep257 }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pytest-pep257-${version}"; pname = "pytest-pep257";
name = "${pname}-${version}";
version = "0.0.5"; version = "0.0.5";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,8 @@
{ stdenv, buildPythonPackage, fetchurl, isPy26, argparse, hypothesis, py }: { stdenv, buildPythonPackage, fetchurl, isPy26, argparse, hypothesis, py }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pytest-${version}";
version = "3.0.7"; version = "3.0.7";
pname = "pytest";
name = "${pname}-${version}";
preCheck = '' preCheck = ''
# don't test bash builtins # don't test bash builtins

View File

@ -3,7 +3,8 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "python-jose-${version}"; pname = "python-jose";
name = "${pname}-${version}";
version = "1.3.2"; version = "1.3.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mpdavis"; owner = "mpdavis";

View File

@ -1,7 +1,8 @@
{ lib, fetchurl, buildPythonPackage }: { lib, fetchurl, buildPythonPackage }:
buildPythonPackage rec { buildPythonPackage rec {
name = "python-sql-${version}"; pname = "python-sql";
name = "${pname}-${version}";
version = "0.8"; version = "0.8";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/p/python-sql/${name}.tar.gz"; url = "mirror://pypi/p/python-sql/${name}.tar.gz";

View File

@ -1,8 +1,9 @@
{ lib, fetchurl, buildPythonPackage, isPy3k }: { lib, fetchurl, buildPythonPackage, isPy3k }:
buildPythonPackage rec { buildPythonPackage rec {
name = "python-stdnum-${version}";
version = "1.5"; version = "1.5";
pname = "python-stdnum";
name = "${pname}-${version}";
# Failing tests and dependency issue on Py3k # Failing tests and dependency issue on Py3k
disabled = isPy3k; disabled = isPy3k;
src = fetchurl { src = fetchurl {

View File

@ -3,7 +3,8 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "pyudev-${version}"; pname = "pyudev";
name = "${pname}-${version}";
version = "0.21.0"; version = "0.21.0";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,8 @@
{ lib, fetchurl, buildPythonPackage, isPy3k }: { lib, fetchurl, buildPythonPackage, isPy3k }:
buildPythonPackage rec { buildPythonPackage rec {
name = "PyWebDAV-${version}"; pname = "pywebdav";
name = "${pname}-${version}";
version = "0.9.8"; version = "0.9.8";
disabled = isPy3k; disabled = isPy3k;
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,9 @@
{lib, fetchurl, python, buildPythonPackage, makeWrapper}: {lib, fetchurl, python, buildPythonPackage, makeWrapper}:
buildPythonPackage rec { buildPythonPackage rec {
name = "PyXML-0.8.4"; pname = "PyXML";
version = "0.8.4";
name = "${pname}-${pname}";
format = "other"; format = "other";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/pyxml/${name}.tar.gz"; url = "mirror://sourceforge/pyxml/${name}.tar.gz";

View File

@ -1,7 +1,8 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pytest, nose, unrar, glibcLocales }: { stdenv, buildPythonPackage, fetchFromGitHub, pytest, nose, unrar, glibcLocales }:
buildPythonPackage rec { buildPythonPackage rec {
name = "rarfile-${version}"; pname = "rarfile";
name = "${pname}-${version}";
version = "3.0"; version = "3.0";
src = fetchFromGitHub { src = fetchFromGitHub {

View File

@ -1,7 +1,8 @@
{ lib, fetchurl, buildPythonPackage, genshi, lxml }: { lib, fetchurl, buildPythonPackage, genshi, lxml }:
buildPythonPackage rec { buildPythonPackage rec {
name = "relatorio-${version}"; pname = "relatorio";
name = "${pname}-${version}";
version = "0.6.4"; version = "0.6.4";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/r/relatorio/${name}.tar.gz"; url = "mirror://pypi/r/relatorio/${name}.tar.gz";

View File

@ -3,7 +3,8 @@
buildPythonPackage rec { buildPythonPackage rec {
version = "0.7.0"; version = "0.7.0";
name = "requests-oauthlib-${version}"; pname = "requests-oauthlib";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "http://github.com/requests/requests-oauthlib/archive/v${version}.tar.gz"; url = "http://github.com/requests/requests-oauthlib/archive/v${version}.tar.gz";

View File

@ -1,7 +1,9 @@
{stdenv, fetchurl, rpmextract, python, wirelesstools, gettext}: {stdenv, fetchurl, rpmextract, python, wirelesstools, gettext}:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "rhpl-0.218"; pname = "rhpl";
version = "0.218";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = http://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/releases/10/Everything/source/SRPMS//rhpl-0.218-1.src.rpm; url = http://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/releases/10/Everything/source/SRPMS//rhpl-0.218-1.src.rpm;

View File

@ -2,8 +2,9 @@
testfixtures, pillow, six, twisted, w3lib, lxml, queuelib, pyopenssl, testfixtures, pillow, six, twisted, w3lib, lxml, queuelib, pyopenssl,
service-identity, parsel, pydispatcher, cssselect, lib }: service-identity, parsel, pydispatcher, cssselect, lib }:
buildPythonPackage rec { buildPythonPackage rec {
name = "Scrapy-${version}";
version = "1.3.1"; version = "1.3.1";
pname = "Scrapy";
name = "${pname}-${version}";
buildInputs = [ glibcLocales mock pytest botocore testfixtures pillow ]; buildInputs = [ glibcLocales mock pytest botocore testfixtures pillow ];
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,7 +1,8 @@
{ lib, fetchurl, buildPythonPackage }: { lib, fetchurl, buildPythonPackage }:
buildPythonPackage rec { buildPythonPackage rec {
name = "simpleeval-${version}"; pname = "simpleeval";
name = "${pname}-${version}";
version = "0.9.5"; version = "0.9.5";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/s/simpleeval/${name}.tar.gz"; url = "mirror://pypi/s/simpleeval/${name}.tar.gz";

View File

@ -1,7 +1,9 @@
{ lib, fetchurl, buildPythonPackage, python, isPyPy }: { lib, fetchurl, buildPythonPackage, python, isPyPy }:
if isPyPy then throw "sip not supported for interpreter ${python.executable}" else buildPythonPackage rec { if isPyPy then throw "sip not supported for interpreter ${python.executable}" else buildPythonPackage rec {
name = "sip-4.19.1"; pname = "sip";
version = "4.19.1";
name = "${pname}-${version}";
format = "other"; format = "other";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,8 @@
{ stdenv, fetchurl, buildPythonPackage, tornado }: { stdenv, fetchurl, buildPythonPackage, tornado }:
buildPythonPackage rec { buildPythonPackage rec {
name = "snakeviz-${version}"; pname = "snakeviz";
name = "${pname}-${version}";
version = "0.4.1"; version = "0.4.1";
src = fetchurl { src = fetchurl {

View File

@ -3,7 +3,8 @@
pbr, tempita, decorator, sqlalchemy, six, sqlparse pbr, tempita, decorator, sqlalchemy, six, sqlparse
}: }:
buildPythonPackage rec { buildPythonPackage rec {
name = "sqlalchemy-migrate-${version}"; pname = "sqlalchemy-migrate";
name = "${pname}-${version}";
version = "0.11.0"; version = "0.11.0";
src = fetchurl { src = fetchurl {

View File

@ -1,7 +1,8 @@
{stdenv, fetchurl, buildPythonPackage, antlr, isPy3k}: {stdenv, fetchurl, buildPythonPackage, antlr, isPy3k}:
buildPythonPackage rec { buildPythonPackage rec {
name = "PyStringTemplate-${version}"; pname = "PyStringTemplate";
name = "${pname}-${version}";
version = "3.2b1"; version = "3.2b1";
src = fetchurl { src = fetchurl {

View File

@ -19,7 +19,8 @@
}: }:
buildPythonApplication rec { buildPythonApplication rec {
name = "subliminal-${version}"; pname = "subliminal";
name = "${pname}-${version}";
version = "2.0.5"; version = "2.0.5";
src = fetchurl { src = fetchurl {

View File

@ -3,7 +3,8 @@
buildPythonPackage rec { buildPythonPackage rec {
version = "3.3.0"; version = "3.3.0";
name = "tables-${version}"; pname = "tables";
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/t/tables/${name}.tar.gz"; url = "mirror://pypi/t/tables/${name}.tar.gz";

View File

@ -1,6 +1,8 @@
{ stdenv, buildPythonPackage, fetchurl, isPy3k, pythonPackages }: { stdenv, buildPythonPackage, fetchurl, isPy3k, pythonPackages }:
buildPythonPackage rec { buildPythonPackage rec {
name = "twill-0.9.1"; pname = "twill";
version = "0.9.1";
name = "${pname}-${version}";
disabled = isPy3k; disabled = isPy3k;

View File

@ -2,8 +2,8 @@
zope_interface, incremental, automat, constantly zope_interface, incremental, automat, constantly
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "Twisted";
name = "Twisted-${version}"; name = "${pname}-${version}";
version = "17.1.0"; version = "17.1.0";
src = fetchurl { src = fetchurl {

View File

@ -5,8 +5,9 @@ then throw "Uranium not supported for interpreter ${python.executable}"
else else
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "uranium-${version}";
version = "2.4.0"; version = "2.4.0";
pname = "uranium";
name = "${pname}-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Ultimaker"; owner = "Ultimaker";

View File

@ -1,6 +1,8 @@
{ fetchurl, boost, zlib, clang, ncurses, pythonPackages, lib }: { fetchurl, boost, zlib, clang, ncurses, pythonPackages, lib }:
pythonPackages.buildPythonPackage rec { pythonPackages.buildPythonPackage rec {
name = "vowpalwabbit-${version}"; pname = "vowpalwabbit";
name = "${pname}-${version}";
version = "8.3.2"; version = "8.3.2";
src = fetchurl{ src = fetchurl{
@ -28,5 +30,4 @@ pythonPackages.buildPythonPackage rec {
license = licenses.bsd3; license = licenses.bsd3;
maintainers = with maintainers; [ teh ]; maintainers = with maintainers; [ teh ];
}; };
} }

View File

@ -1,6 +1,7 @@
{ stdenv, buildPythonPackage, fetchurl, isPy3k }: { stdenv, buildPythonPackage, fetchurl, isPy3k }:
buildPythonPackage rec { buildPythonPackage rec {
name = "xmpp.py-${version}"; pname = "xmpp.py";
name = "${pname}-${version}";
version = "0.5.0rc1"; version = "0.5.0rc1";
patches = [ ./ssl.patch ]; patches = [ ./ssl.patch ];

View File

@ -3,7 +3,8 @@
with lib; with lib;
buildPythonApplication rec { buildPythonApplication rec {
name = "yolk-${version}"; pname = "yolk";
name = "${pname}-${version}";
version = "0.4.3"; version = "0.4.3";
src = fetchurl { src = fetchurl {