Merge remote-tracking branch 'upstream/master' into HEAD
This commit is contained in:
24
pkgs/development/python-modules/audioread/default.nix
Normal file
24
pkgs/development/python-modules/audioread/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "audioread";
|
||||
name = "${pname}-${version}";
|
||||
version = "2.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ffb601de7a9e40850d4ec3256a3a6bbe8fa40466dafb5c65f41b08e4bb963f1e";
|
||||
};
|
||||
|
||||
# No tests, need to disable or py3k breaks
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
description = "Cross-platform audio decoding";
|
||||
homepage = "https://github.com/sampsyo/audioread";
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/bottleneck/default.nix
Normal file
26
pkgs/development/python-modules/bottleneck/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, numpy
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Bottleneck";
|
||||
name = "Bottleneck-${version}";
|
||||
version = "1.2.0";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3bec84564a4adbe97c24e875749b949a19cfba4e4588be495cc441db7c6b05e8";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
checkPhase = ''
|
||||
nosetests -v $out/${python.sitePackages}
|
||||
'';
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
|
||||
'';
|
||||
}
|
||||
@@ -22,6 +22,6 @@ buildPythonPackage rec {
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's@python@${python.interpreter}@' .testr.conf
|
||||
substituteInPlace requirements.txt --replace "argparse"
|
||||
substituteInPlace requirements.txt --replace "argparse" ""
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@ buildPythonPackage rec {
|
||||
doCheck = false;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt --replace "argparse"
|
||||
substituteInPlace requirements.txt --replace "argparse" ""
|
||||
'';
|
||||
}
|
||||
|
||||
21
pkgs/development/python-modules/paramz/default.nix
Normal file
21
pkgs/development/python-modules/paramz/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, numpy, scipy, six, decorator }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "paramz";
|
||||
version = "0.7.4";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1r4mayzp7cb5w1kz45sw65is9j3p60h0yyp8hdhsx393rr4n82nn";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy six decorator ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Parameterization framework for parameterized model creation and handling";
|
||||
homepage = https://github.com/sods/paramz;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "phonenumbers";
|
||||
version = "8.5.1";
|
||||
version = "8.7.1";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
meta = {
|
||||
@@ -14,6 +14,6 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/phonenumbers/${name}.tar.gz";
|
||||
sha256 = "b7d1a5832650fad633d1e4159873788ebfb15e053292c20ab9f5119a574f3a67";
|
||||
sha256 = "1zmi2xvh6v4iyfxmrqhj2byfac9xk733w663a7phib7y6wkvqlgr";
|
||||
};
|
||||
}
|
||||
|
||||
65
pkgs/development/python-modules/sphinx/default.nix
Normal file
65
pkgs/development/python-modules/sphinx/default.nix
Normal file
@@ -0,0 +1,65 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, simplejson
|
||||
, mock
|
||||
, glibcLocales
|
||||
, html5lib
|
||||
, pythonOlder
|
||||
, enum34
|
||||
, python
|
||||
, docutils
|
||||
, jinja2
|
||||
, pygments
|
||||
, alabaster
|
||||
, Babel
|
||||
, snowballstemmer
|
||||
, six
|
||||
, sqlalchemy
|
||||
, whoosh
|
||||
, imagesize
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "Sphinx";
|
||||
version = "1.5.2";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "049c48393909e4704a6ed4de76fd39c8622e165414660bfb767e981e7931c722";
|
||||
};
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
buildInputs = [ pytest simplejson mock glibcLocales html5lib ] ++ lib.optional (pythonOlder "3.4") enum34;
|
||||
# Disable two tests that require network access.
|
||||
checkPhase = ''
|
||||
cd tests; ${python.interpreter} run.py --ignore py35 -k 'not test_defaults and not test_anchors_ignored'
|
||||
'';
|
||||
propagatedBuildInputs = [
|
||||
docutils
|
||||
jinja2
|
||||
pygments
|
||||
alabaster
|
||||
Babel
|
||||
snowballstemmer
|
||||
six
|
||||
sqlalchemy
|
||||
whoosh
|
||||
imagesize
|
||||
requests
|
||||
];
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/22501
|
||||
# Do not run `python sphinx-build arguments` but `sphinx-build arguments`.
|
||||
postPatch = ''
|
||||
substituteInPlace sphinx/make_mode.py --replace "sys.executable, " ""
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A tool that makes it easy to create intelligent and beautiful documentation for Python projects";
|
||||
homepage = http://sphinx.pocoo.org/;
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ nand0p ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/umemcache/default.nix
Normal file
20
pkgs/development/python-modules/umemcache/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, isPy3k, fetchurl }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "umemcache-${version}";
|
||||
version = "1.6.3";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/u/umemcache/${name}.zip";
|
||||
sha256 = "211031a03576b7796bf277dbc9c9e3e754ba066bbb7fb601ab5c6291b8ec1918";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Ultra fast memcache client written in highly optimized C++ with Python bindings";
|
||||
homepage = https://github.com/esnme/ultramemcache;
|
||||
license = licenses.bsdOriginal;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user