Merge branch 'master' into staging
Conflict: rename of pythondaemon -> python-daemon.
This commit is contained in:
23
pkgs/development/python-modules/aioh2/default.nix
Normal file
23
pkgs/development/python-modules/aioh2/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, buildPythonPackage, isPy3k, fetchPypi, h2, priority }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aioh2";
|
||||
version = "0.2.2";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "03i24wzpw0mrnrpck3w6qy83iigwl7n99sdrndqzxfyrc69b99wd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ h2 priority ];
|
||||
|
||||
doCheck = false; # https://github.com/decentfox/aioh2/issues/17
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/decentfox/aioh2;
|
||||
description = "HTTP/2 implementation with hyper-h2 on Python 3 asyncio";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.qyliss ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/python-modules/aiohttp-remotes/default.nix
Normal file
34
pkgs/development/python-modules/aiohttp-remotes/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib, fetchpatch, buildPythonPackage, fetchPypi
|
||||
, aiohttp, pytest, pytestcov, pytest-aiohttp
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp_remotes";
|
||||
version = "0.1.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "43c3f7e1c5ba27f29fb4dbde5d43b900b5b5fc7e37bf7e35e6eaedabaec4a3fc";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = https://github.com/aio-libs/aiohttp-remotes/commit/188772abcea038c31dae7d607e487eeed44391bc.patch;
|
||||
sha256 = "0pb1y4jb8ar1szhnjiyj2sdmdk6z9h6c3wrxw59nv9kr3if5igvs";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
checkInputs = [ pytest pytestcov pytest-aiohttp ];
|
||||
checkPhase = ''
|
||||
python -m pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://github.com/wikibusiness/aiohttp-remotes;
|
||||
description = "A set of useful tools for aiohttp.web server";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.qyliss ];
|
||||
};
|
||||
}
|
||||
40
pkgs/development/python-modules/atomman/default.nix
Normal file
40
pkgs/development/python-modules/atomman/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, xmltodict
|
||||
, datamodeldict
|
||||
, numpy
|
||||
, matplotlib
|
||||
, scipy
|
||||
, pandas
|
||||
, cython
|
||||
, numericalunits
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.2.3";
|
||||
pname = "atomman";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9eb6acc5497263cfa89be8d0f383a9a69f0726b4ac6798c1b1d96f26705ec09c";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits ];
|
||||
|
||||
# tests not included with Pypi release
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/usnistgov/atomman/;
|
||||
description = "Atomistic Manipulation Toolkit";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||
, beautifulsoup4, bottle, chardet, dateutil
|
||||
, google_api_python_client, lxml, ply, python_magic
|
||||
, nose, requests }:
|
||||
, pytest, requests }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.1.3";
|
||||
@@ -14,13 +14,8 @@ buildPythonPackage rec {
|
||||
sha256 = "4b7b0d3633c82ca88d3cb3d31ad2fd2e45a42401cfa94eaa1cb938ffece34f22";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
# Automatic tests cannot be run because it needs to import some local modules for tests.
|
||||
# No tests in archive
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
@@ -32,6 +27,9 @@ buildPythonPackage rec {
|
||||
ply
|
||||
python_magic
|
||||
requests
|
||||
# pytest really is a runtime dependency
|
||||
# https://bitbucket.org/blais/beancount/commits/554e13057551951e113835196770847c788dd592
|
||||
pytest
|
||||
];
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, stompclient, pythondaemon, redis, pid, pytest, six, click, coverage
|
||||
, stompclient, python-daemon, redis, pid, pytest, six, click, coverage
|
||||
, sqlalchemy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
sha256 = "4cbfeb5ed2459df14902c1380157be6267702b1271682924cd316ccad8a29d1d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ stompclient pythondaemon redis pid ];
|
||||
propagatedBuildInputs = [ stompclient python-daemon redis pid ];
|
||||
buildInputs = [ pytest six click coverage sqlalchemy ];
|
||||
|
||||
# The teste data is not included in the distribution
|
||||
|
||||
27
pkgs/development/python-modules/datamodeldict/default.nix
Normal file
27
pkgs/development/python-modules/datamodeldict/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, xmltodict
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.9.4";
|
||||
pname = "DataModelDict";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "97d8e999e000cf69c48e57b1a72eb45a27d83576a38c6cd8550c230b018be7af";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ xmltodict ];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/usnistgov/DataModelDict/;
|
||||
description = "Class allowing for data models equivalently represented as Python dictionaries, JSON, and XML";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
@@ -4,18 +4,18 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gplaycli";
|
||||
version = "3.21";
|
||||
version = "3.25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matlink";
|
||||
repo = "gplaycli";
|
||||
rev = version;
|
||||
sha256 = "1r5nzi9yzswam0866gypjcvv3f1rw13jwx9s49chp8byxy1dyrs2";
|
||||
sha256 = "1rygx5cg4b1vwpkiaq6jcpbc1ly7cspslv3sy7x8n8ba61ryq6h4";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ libffi pyasn1 clint ndg-httpsclient protobuf requests args gpapi pyaxmlparser ];
|
||||
propagatedBuildInputs = [ libffi pyasn1 clint ndg-httpsclient protobuf requests args gpapi pyaxmlparser ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/matlink/gplaycli;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, ed25519, ecdsa , semver, mnemonic,
|
||||
unidecode, mock, pytest , backports-shutil-which, ConfigArgParse,
|
||||
pythondaemon, pymsgbox }:
|
||||
python-daemon, pymsgbox }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libagent";
|
||||
@@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ unidecode backports-shutil-which ConfigArgParse
|
||||
pythondaemon pymsgbox ecdsa ed25519 mnemonic semver ];
|
||||
python-daemon pymsgbox ecdsa ed25519 mnemonic semver ];
|
||||
|
||||
checkInputs = [ mock pytest ];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
let
|
||||
pname = "nbxmpp";
|
||||
version = "0.6.6";
|
||||
version = "0.6.8";
|
||||
name = "${pname}-${version}";
|
||||
in buildPythonPackage rec {
|
||||
inherit pname version;
|
||||
@@ -11,7 +11,7 @@ in buildPythonPackage rec {
|
||||
name = "${name}.tar.bz2";
|
||||
url = "https://dev.gajim.org/gajim/python-nbxmpp/repository/archive.tar.bz2?"
|
||||
+ "ref=${name}";
|
||||
sha256 = "10n7z613p00q15dplsvdrz11s9yq26jy2qack6nd8k7fivfhlcmz";
|
||||
sha256 = "09zrqz01j45kvayfscd66avkrnn237lbjg9li5hjhyw92h6hkkc4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyopenssl ];
|
||||
|
||||
24
pkgs/development/python-modules/numericalunits/default.nix
Normal file
24
pkgs/development/python-modules/numericalunits/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.16";
|
||||
pname = "numericalunits";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "71ae8e236c7a223bccefffb670dca68be476dd63b7b9009641fc64099455da25";
|
||||
};
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://pypi.python.org/pypi/numericalunits;
|
||||
description = "A package that lets you define quantities with unit";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
23
pkgs/development/python-modules/priority/default.nix
Normal file
23
pkgs/development/python-modules/priority/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pytest, hypothesis }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "priority";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1gpzn9k9zgks0iw5wdmad9b4dry8haiz2sbp6gycpjkzdld9dhbb";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest hypothesis ];
|
||||
checkPhase = ''
|
||||
PYTHONPATH="src:$PYTHONPATH" pytest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = https://python-hyper.org/priority/;
|
||||
description = "A pure-Python implementation of the HTTP/2 priority tree";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.qyliss ];
|
||||
};
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, tornado
|
||||
, zeromq3
|
||||
, zeromq
|
||||
, py
|
||||
, python
|
||||
}:
|
||||
@@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
checkInputs = [ pytest tornado ];
|
||||
buildInputs = [ zeromq3];
|
||||
buildInputs = [ zeromq ];
|
||||
propagatedBuildInputs = [ py ];
|
||||
|
||||
# test_socket.py seems to be hanging
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, nose, dnspython
|
||||
, chardet, lmtpd, pythondaemon, six, jinja2, mock }:
|
||||
, chardet, lmtpd, python-daemon, six, jinja2, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "salmon-mail";
|
||||
@@ -11,7 +11,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
checkInputs = [ nose jinja2 mock ];
|
||||
propagatedBuildInputs = [ chardet dnspython lmtpd pythondaemon six ];
|
||||
propagatedBuildInputs = [ chardet dnspython lmtpd python-daemon six ];
|
||||
|
||||
# The tests use salmon executable installed by salmon itself so we need to add
|
||||
# that to PATH
|
||||
|
||||
28
pkgs/development/python-modules/trueskill/default.nix
Normal file
28
pkgs/development/python-modules/trueskill/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "trueskill";
|
||||
version = "0.4.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1fv7g1szyjykja9mzax2w4js7jm2z7wwzgnr5dqrsdi84j6v8qlx";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
|
||||
# Can't build distribute, see https://github.com/NixOS/nixpkgs/pull/49340
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "The video game rating system";
|
||||
homepage = https://trueskill.org;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [
|
||||
eadwu
|
||||
];
|
||||
};
|
||||
}
|
||||
49
pkgs/development/python-modules/zstd/default.nix
Normal file
49
pkgs/development/python-modules/zstd/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ stdenv, pkgconfig, fetchpatch, fetchFromGitHub, buildPythonPackage
|
||||
, zstd, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zstd";
|
||||
version = "1.3.5.1";
|
||||
|
||||
# Switch back to fetchPypi when tests/ is included, see https://github.com/NixOS/nixpkgs/pull/49339
|
||||
src = fetchFromGitHub {
|
||||
owner = "sergey-dryabzhinsky";
|
||||
repo = "python-zstd";
|
||||
rev = "v${version}";
|
||||
sha256 = "08n1vz4zavas4cgzpdfcbpy33lnv39xxhq5mgj0zv3xi03ypc1rl";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "/usr/bin/pkg-config" "${pkgconfig}/bin/pkg-config"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [ zstd ];
|
||||
|
||||
setupPyBuildFlags = [
|
||||
"--external"
|
||||
"--include-dirs=${zstd}/include"
|
||||
"--libraries=zstd"
|
||||
"--library-dirs=${zstd}/lib"
|
||||
];
|
||||
|
||||
# Running tests via setup.py triggers an attempt to recompile with the vendored zstd
|
||||
ZSTD_EXTERNAL = 1;
|
||||
VERSION = zstd.version;
|
||||
PKG_VERSION = version;
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simple python bindings to Yann Collet ZSTD compression library";
|
||||
homepage = https://github.com/sergey-dryabzhinsky/python-zstd;
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [
|
||||
eadwu
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user