Merge remote-tracking branch 'upstream/master' into staging
Conflicts: pkgs/development/tools/build-managers/conan/default.nix
This commit is contained in:
48
pkgs/development/python-modules/alot/default.nix
Normal file
48
pkgs/development/python-modules/alot/default.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k
|
||||
, notmuch, urwid, urwidtrees, twisted, python_magic, configobj, pygpgme, mock, file, gpgme}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.5.1";
|
||||
pname = "alot";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pazz";
|
||||
repo = pname;
|
||||
rev = "version";
|
||||
sha256 = "0ipkhc5wllfq78lg47aiq4qih0yjq8ad9xkrbgc88xk8pk9166i8";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace alot/defaults/alot.rc.spec \
|
||||
--replace "themes_dir = string(default=None)" \
|
||||
"themes_dir = string(default='$out/share/themes')"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
notmuch
|
||||
urwid
|
||||
urwidtrees
|
||||
twisted
|
||||
python_magic
|
||||
configobj
|
||||
pygpgme
|
||||
mock
|
||||
file
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share
|
||||
cp -r extra/themes $out/share
|
||||
wrapProgram $out/bin/alot \
|
||||
--prefix LD_LIBRARY_PATH : '${stdenv.lib.makeLibraryPath [ notmuch file gpgme ]}'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/pazz/alot;
|
||||
description = "Terminal MUA using notmuch mail";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/anyjson/default.nix
Normal file
21
pkgs/development/python-modules/anyjson/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "anyjson";
|
||||
version = "0.3.3";
|
||||
|
||||
# The tests are written in a python2 syntax but anyjson is python3 valid
|
||||
doCheck = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "37812d863c9ad3e35c0734c42e0bf0320ce8c3bed82cd20ad54cb34d158157ba";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
meta = {
|
||||
homepage = https://pypi.python.org/pypi/anyjson/;
|
||||
description = "Wrapper that selects the best available JSON implementation";
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{ lib, buildPythonPackage, fetchPypi,
|
||||
pytest, requests, requests_oauthlib, six
|
||||
{ lib, buildPythonPackage, pytest, requests, requests_oauthlib, six
|
||||
, fetchFromGitHub, responses, stdenv
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -7,18 +7,14 @@ buildPythonPackage rec {
|
||||
version = "0.7.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
meta = {
|
||||
description = "Python client library for Asana";
|
||||
homepage = https://github.com/asana/python-asana;
|
||||
license = lib.licenses.mit;
|
||||
src = fetchFromGitHub {
|
||||
owner = "asana";
|
||||
repo = "python-asana";
|
||||
rev = "v${version}";
|
||||
sha256 = "0786y3wxqxxhsb0kkpx4bfzif3dhvv3dmm6vnq58iyj94862kpxf";
|
||||
};
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a7ff4a78529257a5412e78cafd6b3025523364c0ab628d579f2771dd66b254bc";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
checkInputs = [ pytest responses ];
|
||||
propagatedBuildInputs = [ requests requests_oauthlib six ];
|
||||
|
||||
patchPhase = ''
|
||||
@@ -27,11 +23,13 @@ buildPythonPackage rec {
|
||||
sed -i "s/requests_oauthlib~=0.6.1/requests_oauthlib >=0.6.1/" setup.py
|
||||
'';
|
||||
|
||||
# ERROR: file not found: tests
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python client library for Asana";
|
||||
homepage = https://github.com/asana/python-asana;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }:
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pytest, pythonOlder }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "construct";
|
||||
@@ -14,15 +14,16 @@ buildPythonPackage rec {
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
# Tests fail with the following error on Python 3.5+
|
||||
# TypeError: not all arguments converted during string formatting
|
||||
doCheck = pythonOlder "3.5";
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test -k 'not test_numpy' tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Powerful declarative parser (and builder) for binary data";
|
||||
homepage = http://construct.readthedocs.org/;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ bjornfor ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -10,15 +10,17 @@ buildPythonPackage rec {
|
||||
sha256 = "78a3bf6c8377fdbe3d85e914a209ff97aa43e35605779639847b510ced31f7b9";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace discid/libdiscid.py \
|
||||
--replace '_open_library(_LIB_NAME)' "_open_library('${libdiscid}/lib/libdiscid.so.0')"
|
||||
'';
|
||||
patchPhase =
|
||||
let extension = stdenv.hostPlatform.extensions.sharedLibrary; in
|
||||
''
|
||||
substituteInPlace discid/libdiscid.py \
|
||||
--replace "_open_library(_LIB_NAME)" \
|
||||
"_open_library('${libdiscid}/lib/libdiscid${extension}')"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python binding of libdiscid";
|
||||
homepage = "https://python-discid.readthedocs.org/";
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
||||
26
pkgs/development/python-modules/distro/11.nix
Normal file
26
pkgs/development/python-modules/distro/11.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pytest, pytestcov, tox }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "distro";
|
||||
version = "1.1.0";
|
||||
|
||||
buildInputs = [ pytest pytestcov tox];
|
||||
|
||||
checkPhase = ''
|
||||
touch tox.ini
|
||||
tox
|
||||
'';
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1vn1db2akw98ybnpns92qi11v94hydwp130s8753k6ikby95883j";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/nir0s/distro;
|
||||
description = "Linux Distribution - a Linux OS platform information API.";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ nand0p ];
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/gpapi/default.nix
Normal file
20
pkgs/development/python-modules/gpapi/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, requests, protobuf, pycryptodome }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.4.2";
|
||||
pname = "gpapi";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version pname;
|
||||
sha256 = "1fv2y3xbwn512fjxrdwgq6cz0xjd7mh54nq1f18wyz8w40vcznns";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests protobuf pycryptodome ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/NoMore201/googleplay-api;
|
||||
license = licenses.gpl3;
|
||||
description = "Google Play Unofficial Python API";
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/gplaycli/default.nix
Normal file
26
pkgs/development/python-modules/gplaycli/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ buildPythonPackage, stdenv, libffi, isPy3k, pyasn1, clint, ndg-httpsclient
|
||||
, protobuf, requests, args, gpapi, pyaxmlparser, fetchFromGitHub
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.21";
|
||||
name = "gplaycli-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matlink";
|
||||
repo = "gplaycli";
|
||||
rev = version;
|
||||
sha256 = "1r5nzi9yzswam0866gypjcvv3f1rw13jwx9s49chp8byxy1dyrs2";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ libffi pyasn1 clint ndg-httpsclient protobuf requests args gpapi pyaxmlparser ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/matlink/gplaycli;
|
||||
description = "Google Play Downloader via Command line";
|
||||
license = licenses.agpl3Plus;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/htmltreediff/default.nix
Normal file
26
pkgs/development/python-modules/htmltreediff/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ buildPythonPackage, fetchFromGitHub, isPy3k, lxml, html5lib, nose, stdenv }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "v0.1.2";
|
||||
pname = "htmltreediff";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "christian-oudard";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "16mqp2jyznrw1mgd3qzybq28h2k5wz7vmmz1m6xpgscazyjhvvd1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ lxml html5lib ];
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = " Structure-aware diff for html and xml documents";
|
||||
homepage = https://github.com/christian-oudard/htmltreediff;
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/marisa/default.nix
Normal file
25
pkgs/development/python-modules/marisa/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, marisa, swig }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "marisa";
|
||||
version = "1.3.40";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "s-yata";
|
||||
repo = "marisa-trie";
|
||||
rev = "59e410597981475bae94d9d9eb252c1d9790dc2f";
|
||||
sha256 = "0z4bf55np08q3cbi6gvj3cpw3zp8kf2d0jq6k74pjk066m7rapbb";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ swig marisa ];
|
||||
buildinputs = [ marisa ];
|
||||
|
||||
sourceRoot = "${src.name}/bindings/python";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python binding for marisa package (do not confuse with marisa-trie python bindings)";
|
||||
homepage = https://github.com/s-yata/marisa-trie;
|
||||
license = with licenses; [ bsd2 lgpl2 ];
|
||||
maintainers = with maintainers; [ vanzef ];
|
||||
};
|
||||
}
|
||||
35
pkgs/development/python-modules/mt-940/default.nix
Normal file
35
pkgs/development/python-modules/mt-940/default.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{ buildPythonPackage, stdenv, pytestrunner, pyyaml, pytest, enum34
|
||||
, pytestpep8, pytestflakes,fetchFromGitHub, isPy3k, lib, glibcLocales
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "v4.10.0";
|
||||
pname = "mt940";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "WoLpH";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1dsf2di8rr0iw2vaz6dppalby3y7i8x2bl0qjqvaiqacjxxvwj65";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./no-coverage.patch
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ pyyaml pytestrunner ]
|
||||
++ lib.optional (!isPy3k) enum34;
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
checkInputs = [ pytestpep8 pytestflakes pytest glibcLocales ];
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
|
||||
homepage = "http://pythonhosted.org/mt-940/";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/mt-940/no-coverage.patch
Normal file
26
pkgs/development/python-modules/mt-940/no-coverage.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
diff --git a/pytest.ini b/pytest.ini
|
||||
index fef28f5..f366331 100644
|
||||
--- a/pytest.ini
|
||||
+++ b/pytest.ini
|
||||
@@ -4,10 +4,6 @@ python_files =
|
||||
tests/*.py
|
||||
|
||||
addopts =
|
||||
- --cov mt940
|
||||
- --cov-report term-missing
|
||||
- --cov-report html
|
||||
- --no-cov-on-fail
|
||||
--doctest-modules
|
||||
--pep8
|
||||
--flakes
|
||||
diff --git a/tests/requirements.txt b/tests/requirements.txt
|
||||
index fc55572..e52cc28 100644
|
||||
--- a/tests/requirements.txt
|
||||
+++ b/tests/requirements.txt
|
||||
@@ -3,6 +3,5 @@
|
||||
-r ../docs/requirements.txt
|
||||
pytest
|
||||
pytest-cache
|
||||
-pytest-cover
|
||||
pytest-flakes
|
||||
pytest-pep8
|
||||
21
pkgs/development/python-modules/node-semver/2.nix
Normal file
21
pkgs/development/python-modules/node-semver/2.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pytest, tox }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
version = "0.2.0";
|
||||
pname = "node-semver";
|
||||
|
||||
buildInputs = [ pytest tox ];
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1080pdxrvnkr8i7b7bk0dfx6cwrkkzzfaranl7207q6rdybzqay3";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/podhmo/python-semver;
|
||||
description = "A port of node-semver";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
20
pkgs/development/python-modules/pyaxmlparser/default.nix
Normal file
20
pkgs/development/python-modules/pyaxmlparser/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ buildPythonPackage, stdenv, lxml, click, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.3.7";
|
||||
pname = "pyaxmlparser";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1spwr28sc6fc3cqdx2j2zq38qx889hixl4ahhf1nphpmrl39ypxr";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ lxml click ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python3 Parser for Android XML file and get Application Name without using Androguard";
|
||||
homepage = https://github.com/appknox/pyaxmlparser;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
}:
|
||||
|
||||
|
||||
@@ -13,11 +14,15 @@ buildPythonPackage rec {
|
||||
sha256 = "b44624a38d07d3c954c84ad302c29f7930f4bf01443beef5589e9157b14e2a29";
|
||||
};
|
||||
|
||||
postCheck = ''
|
||||
echo "We now run tests ourselves, since the setuptools installer doesn't."
|
||||
${python.interpreter} -c 'import test_regex; test_regex.test_main();'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Alternative regular expression module, to replace re";
|
||||
homepage = https://bitbucket.org/mrabarnett/mrab-regex;
|
||||
license = lib.licenses.psfl;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ abbradar ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -15,7 +15,6 @@ buildPythonPackage rec {
|
||||
description = "Generic test automation framework";
|
||||
homepage = http://robotframework.org/;
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ bjornfor ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,10 +30,9 @@ buildPythonPackage rec {
|
||||
sed -i "s|free = load_dll('c').free|free = load_dll('c', fallbacks=['${stdenv.cc.libc}/lib/${libc}']).free|" shapely/geos.py
|
||||
'';
|
||||
|
||||
# tests/test_voctorized fails because the vectorized extension is not
|
||||
# available in when running tests
|
||||
# Disable the tests that improperly try to use the built extensions
|
||||
checkPhase = ''
|
||||
py.test --ignore tests/test_vectorized.py
|
||||
py.test -k 'not test_vectorized and not test_fallbacks' tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
Reference in New Issue
Block a user