Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/python-unstable' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Nov 24, 2017
2 parents 35f5912 + d993786 commit 7a13e5a
Show file tree
Hide file tree
Showing 82 changed files with 308 additions and 185 deletions.
2 changes: 1 addition & 1 deletion pkgs/applications/office/paperwork/backend.nix
Expand Up @@ -9,7 +9,7 @@
}:

buildPythonPackage rec {
name = "paperwork-backend-${version}";
pname = "paperwork-backend";
version = "1.2.1";

src = fetchFromGitHub {
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/jsonnet/default.nix
Expand Up @@ -4,6 +4,7 @@ let version = "0.9.4"; in

stdenv.mkDerivation {
name = "jsonnet-${version}";
version = version;

src = fetchFromGitHub {
rev = "v${version}";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/boost/generic.nix
Expand Up @@ -125,7 +125,7 @@ in
stdenv.mkDerivation {
name = "boost-${version}";

inherit src patches;
inherit src patches version;

meta = {
homepage = http://boost.org/;
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/libraries/kmsxx/default.nix
@@ -1,7 +1,9 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libdrm, python }:

stdenv.mkDerivation rec {
name = "kmsxx-2017-10-10";
pname = "kmsxx";
version = "2017-10-10";
name = pname + "-" + version;

src = fetchFromGitHub {
owner = "tomba";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/libraries/libxslt/default.nix
Expand Up @@ -10,7 +10,9 @@ assert pythonSupport -> libxml2.pythonSupport;
with stdenv.lib;

stdenv.mkDerivation rec {
name = "libxslt-1.1.29";
pname = "libxslt";
version = "1.1.29";
name = pname + "-" + version;

src = fetchurl {
url = "http://xmlsoft.org/sources/${name}.tar.gz";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/arelle/default.nix
Expand Up @@ -5,8 +5,9 @@
... }:

buildPythonPackage rec {
name = "arelle-${version}${lib.optionalString (!gui) "-headless"}";
pname = "arelle-${version}${lib.optionalString (!gui) "-headless"}";
version = "2017-08-24";
name = pname + "-" + version;

disabled = !isPy3k;

Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/asn1ate/default.nix
Expand Up @@ -4,7 +4,8 @@
buildPythonPackage rec {
pname = "asn1ate";
date = "20160810";
name = "${pname}-unstable-${date}";
version = "unstable-${date}";
name = "${pname}-${version}";

src = fetchFromGitHub {
sha256 = "04pddr1mh2v9qq8fg60czwvjny5qwh4nyxszr3qc4bipiiv2xk9w";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/augeas/default.nix
@@ -1,7 +1,8 @@
{ stdenv, lib, buildPythonPackage, fetchFromGitHub, augeas, cffi }:
buildPythonPackage rec {
name = "augeas-${version}";
pname = "augeas";
version = "1.0.2";
name = pname + "-" + version;

src = fetchFromGitHub {
owner = "hercules-team";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/blockdiag/default.nix
Expand Up @@ -3,8 +3,9 @@
}:

buildPythonPackage rec {
name = "blockdiag-${version}";
pname = "blockdiag";
version = "1.5.3";
name = pname + "-" + version;

src = fetchurl {
url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2";
Expand Down
5 changes: 3 additions & 2 deletions pkgs/development/python-modules/bottleneck/default.nix
Expand Up @@ -8,8 +8,9 @@

buildPythonPackage rec {
pname = "Bottleneck";
name = "Bottleneck-${version}";
version = "1.2.1";
name = pname + "-" + version;

src = fetchPypi {
inherit pname version;
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
Expand All @@ -23,4 +24,4 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
'';
}
}
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/cgroup-utils/default.nix
Expand Up @@ -2,7 +2,8 @@

buildPythonPackage rec {
version = "0.6";
name = "cgroup-utils-${version}";
pname = "cgroup-utils";
name = pname + "-" + version;

buildInputs = [ pep8 nose ];
# Pep8 tests fail...
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/construct/default.nix
@@ -1,8 +1,9 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }:

buildPythonPackage rec {
name = "construct-${version}";
pname = "construct";
version = "2.8.16";
name = pname + "-" + version;

src = fetchFromGitHub {
owner = "construct";
Expand Down
9 changes: 5 additions & 4 deletions pkgs/development/python-modules/cymem/default.nix
Expand Up @@ -5,8 +5,9 @@
, python
}:
buildPythonPackage rec {
name = "cymem-${version}";
pname = "cymem";
version = "1.31.2";
name = pname + "-" + version;

src = fetchFromGitHub {
owner = "explosion";
Expand All @@ -16,14 +17,14 @@ buildPythonPackage rec {
};

propagatedBuildInputs = [
cython
cython
];

checkPhase = ''
cd cymem/tests
${python.interpreter} -m unittest discover -p "*test*"
'';

meta = with stdenv.lib; {
description = "Cython memory pool for RAII-style memory management";
homepage = https://github.com/explosion/cymem;
Expand Down
5 changes: 3 additions & 2 deletions pkgs/development/python-modules/django-hijack/default.nix
Expand Up @@ -2,8 +2,9 @@
django, django_compat, django_nose
}:
buildPythonPackage rec {
name = "django-hijack-${version}";
pname = "django-hijack";
version = "2.1.4";
name = pname + "-" + version;

# the pypi packages don't include everything required for the tests
src = fetchFromGitHub {
Expand Down Expand Up @@ -36,4 +37,4 @@ buildPythonPackage rec {
license = licenses.mit;
maintainers = with maintainers; [ ris ];
};
}
}
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/dkimpy/default.nix
Expand Up @@ -2,10 +2,11 @@
, pytest, dns }:

buildPythonApplication rec {
name = "${pname}-${majorversion}.${minorversion}";
name = "${pname}-${version}";
pname = "dkimpy";
majorversion = "0.6";
minorversion = "2";
version = "${majorversion}.${minorversion}";

src = fetchurl {
url = "https://launchpad.net/${pname}/${majorversion}/${majorversion}.${minorversion}/+download/${name}.tar.gz";
Expand Down
7 changes: 3 additions & 4 deletions pkgs/development/python-modules/first/default.nix
@@ -1,10 +1,9 @@
{ stdenv, buildPythonPackage, fetchPypi }:
let

buildPythonPackage rec {
pname = "first";
version = "2.0.1";
in
buildPythonPackage {
name = "${pname}-${version}";
name = pname + "-" + version;

src = fetchPypi {
inherit pname version;
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/geopandas/default.nix
Expand Up @@ -3,8 +3,9 @@
, pytest }:

buildPythonPackage rec {
name = "geopandas-${version}";
pname = "geopandas";
version = "0.3.0";
name = pname + "-" + version;

src = fetchFromGitHub {
owner = "geopandas";
Expand Down
13 changes: 4 additions & 9 deletions pkgs/development/python-modules/gevent/default.nix
@@ -1,20 +1,15 @@
{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:

buildPythonPackage rec {
name = "gevent-1.1.2";
pname = "gevent";
version = "1.2.2";
name = pname + "-" + version;

src = fetchurl {
url = "mirror://pypi/g/gevent/${name}.tar.gz";
sha256 = "cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c";
sha256 = "0bbbjvi423y9k9xagrcsimnayaqymg6f2dj76m9z3mjpkjpci4a7";
};

# Why do we have this patch?
postPatch = ''
substituteInPlace libev/ev.c --replace \
"ecb_inline void ecb_unreachable (void) ecb_noreturn" \
"ecb_inline ecb_noreturn void ecb_unreachable (void)"
'';

buildInputs = [ libev ];
propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];

Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/gflags/default.nix
Expand Up @@ -2,7 +2,8 @@

buildPythonPackage rec {
version = "3.1.2";
name = "gflags-${version}";
pname = "gflags";
name = pname + "-" + version;

src = fetchPypi {
inherit version;
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/hmmlearn/default.nix
@@ -1,8 +1,9 @@
{ lib, fetchurl, buildPythonPackage, numpy }:

buildPythonPackage rec {
name = "hmmlearn-${version}";
pname = "hmmlearn";
version = "0.2.0";
name = pname + "-" + version;

src = fetchurl {
url = "mirror://pypi/h/hmmlearn/${name}.tar.gz";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/python-modules/hyperlink/default.nix
@@ -1,7 +1,9 @@
{ stdenv, buildPythonPackage, fetchurl, pytest }:

buildPythonPackage rec {
name = "hyperlink-${version}";
pname = "hyperlink";
version = "17.3.0";
name = pname + "-" + version;

src = fetchurl {
url = "mirror://pypi/h/hyperlink/${name}.tar.gz";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/python-modules/keystoneclient/default.nix
Expand Up @@ -9,8 +9,9 @@
}:

buildPythonPackage rec {
name = "keystoneclient-${version}";
pname = "keystoneclient";
version = "1.8.1";
name = pname + "-" + version;

src = fetchFromGitHub {
owner = "openstack";
Expand Down
3 changes: 1 addition & 2 deletions pkgs/development/python-modules/keyutils/default.nix
@@ -1,9 +1,8 @@
{ lib, buildPythonPackage, fetchurl, pkgs, pytestrunner }:

let
buildPythonPackage rec {
pname = "keyutils";
version = "0.5";
in buildPythonPackage rec {
name = "${pname}-${version}";

src = fetchurl {
Expand Down
21 changes: 11 additions & 10 deletions pkgs/development/python-modules/libgpuarray/default.nix
@@ -1,4 +1,4 @@
{ stdenv
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
Expand All @@ -11,18 +11,19 @@
, python
, cudaSupport ? false, cudatoolkit
, openclSupport ? true, ocl-icd, clblas
}:
}:

buildPythonPackage rec {
name = "libgpuarray-${version}";
pname = "libgpuarray";
version = "0.6.9";
name = pname + "-" + version;

src = fetchFromGitHub {
owner = "Theano";
owner = "Theano";
repo = "libgpuarray";
rev = "v${version}";
sha256 = "06z47ls42a37gbv0x7f3l1qvils7q0hvy02s95l530klgibp19s0";
};
};

# requires a GPU
doCheck = false;
Expand All @@ -43,7 +44,7 @@ buildPythonPackage rec {
export NIX_CFLAGS_COMPILE="-L $out/lib -I $out/include $NIX_CFLAGS_COMPILE"
cd ..
'';
'';

postFixup = ''
rm $out/lib/libgpuarray-static.a
Expand All @@ -64,11 +65,11 @@ buildPythonPackage rec {

enableParallelBuilding = true;

buildInputs = [
cmake
cython
buildInputs = [
cmake
cython
nose
];
];

meta = with stdenv.lib; {
homepage = "https://github.com/Theano/libgpuarray";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/python-modules/llfuse/default.nix
Expand Up @@ -3,7 +3,9 @@
}:

buildPythonPackage rec {
name = "llfuse-1.0";
pname = "llfuse";
version = "1.0";
name = pname + "-" + version;

src = fetchurl {
url = "mirror://pypi/l/llfuse/${name}.tar.bz2";
Expand Down
32 changes: 32 additions & 0 deletions pkgs/development/python-modules/locustio/default.nix
@@ -0,0 +1,32 @@
{ buildPythonPackage
, fetchPypi
, mock
, unittest2
, msgpack
, requests
, flask
, gevent
, pyzmq
}:

buildPythonPackage rec {
pname = "locustio";
version = "0.8";

src = fetchPypi {
inherit pname version;
sha256 = "0y3r2g31z7g120c7v91zdvcakwfxv2acbgs4flarv5yza2knl11c";
};

patchPhase = ''
sed -i s/"pyzmq=="/"pyzmq>="/ setup.py
'';

propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ];
buildInputs = [ mock unittest2 ];

meta = {
homepage = http://locust.io/;
description = "A load testing tool";
};
}

0 comments on commit 7a13e5a

Please sign in to comment.