mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 00:49:52 +00:00
Merge pull request #49434 from costrouc/costrouc/refactor-move-to-python-modules-4
Finish moving all python packages -> python-modules
This commit is contained in:
commit
50744a279c
33
pkgs/development/python-modules/argh/default.nix
Normal file
33
pkgs/development/python-modules/argh/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, py
|
||||
, mock
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "argh";
|
||||
version = "0.26.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1nqham81ihffc9xmw85dz3rg3v90rw7h0dp3dy0bh3qkp4n499q6";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest py mock pkgs.glibcLocales ];
|
||||
|
||||
checkPhase = ''
|
||||
export LANG="en_US.UTF-8"
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/neithere/argh/;
|
||||
description = "An unobtrusive argparse wrapper with natural syntax";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
43
pkgs/development/python-modules/basemap/default.nix
Normal file
43
pkgs/development/python-modules/basemap/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, numpy
|
||||
, matplotlib
|
||||
, pillow
|
||||
, setuptools
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "basemap";
|
||||
version = "1.0.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/matplotlib/matplotlib-toolkits/basemap-1.0.7/basemap-1.0.7.tar.gz";
|
||||
sha256 = "0ca522zirj5sj10vg3fshlmgi615zy5gw2assapcj91vsvhc4zp0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy matplotlib pillow ];
|
||||
buildInputs = [ setuptools pkgs.geos pkgs.proj ];
|
||||
|
||||
# Standard configurePhase from `buildPythonPackage` seems to break the setup.py script
|
||||
configurePhase = ''
|
||||
export GEOS_DIR=${pkgs.geos}
|
||||
'';
|
||||
|
||||
# The 'check' target is not supported by the `setup.py` script.
|
||||
# TODO : do the post install checks (`cd examples && ${python.interpreter} run_all.py`)
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://matplotlib.org/basemap/";
|
||||
description = "Plot data on map projections with matplotlib";
|
||||
longDescription = ''
|
||||
An add-on toolkit for matplotlib that lets you plot data on map projections with
|
||||
coastlines, lakes, rivers and political boundaries. See
|
||||
http://matplotlib.github.com/basemap/users/examples.html for examples of what it can do.
|
||||
'';
|
||||
license = with licenses; [ mit gpl2 ];
|
||||
};
|
||||
|
||||
}
|
25
pkgs/development/python-modules/blessings/default.nix
Normal file
25
pkgs/development/python-modules/blessings/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "blessings";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "01rhgn2c3xjf9h1lxij9m05iwf2ba6d0vd7nic26c2gic4q73igd";
|
||||
};
|
||||
|
||||
# 4 failing tests, 2to3
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/erikrose/blessings;
|
||||
description = "A thin, practical wrapper around terminal coloring, styling, and positioning";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
23
pkgs/development/python-modules/blist/default.nix
Normal file
23
pkgs/development/python-modules/blist/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "blist";
|
||||
version = "1.3.6";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hqz9pqbwx0czvq9bjdqjqh5bwfksva1is0anfazig81n18c84is";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://stutzbachenterprises.com/blist/;
|
||||
description = "A list-like type with better asymptotic performance and similar performance on small lists";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
31
pkgs/development/python-modules/cliapp/default.nix
Normal file
31
pkgs/development/python-modules/cliapp/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchgit
|
||||
, sphinx
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cliapp";
|
||||
version = "1.20150305";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchgit {
|
||||
url = "http://git.liw.fi/cgi-bin/cgit/cgit.cgi/cliapp";
|
||||
rev = "569df8a5959cd8ef46f78c9497461240a5aa1123";
|
||||
sha256 = "882c5daf933e4cf089842995efc721e54361d98f64e0a075e7373b734cd899f3";
|
||||
};
|
||||
|
||||
buildInputs = [ sphinx ];
|
||||
|
||||
# error: invalid command 'test'
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://liw.fi/cliapp/;
|
||||
description = "Python framework for Unix command line programs";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ rickynils ];
|
||||
};
|
||||
|
||||
}
|
39
pkgs/development/python-modules/clint/default.nix
Normal file
39
pkgs/development/python-modules/clint/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, mock
|
||||
, blessings
|
||||
, nose
|
||||
, nose_progressive
|
||||
, pillow
|
||||
, args
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clint";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} test_clint.py
|
||||
'';
|
||||
|
||||
buildInputs = [ mock nose nose_progressive pkgs.glibcLocales ];
|
||||
propagatedBuildInputs = [ pillow blessings args ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/kennethreitz/clint;
|
||||
description = "Python Command Line Interface Tools";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
26
pkgs/development/python-modules/clize/default.nix
Normal file
26
pkgs/development/python-modules/clize/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, dateutil
|
||||
, sigtools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "clize";
|
||||
version = "3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1xkr3h404d7pgj5gdpg6bddv3v3yq2hgx8qlwkgw5abg218k53hm";
|
||||
};
|
||||
|
||||
buildInputs = [ dateutil ];
|
||||
propagatedBuildInputs = [ sigtools ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command-line argument parsing for Python";
|
||||
homepage = "https://github.com/epsy/clize";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
32
pkgs/development/python-modules/cmdtest/default.nix
Normal file
32
pkgs/development/python-modules/cmdtest/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, cliapp
|
||||
, ttystatus
|
||||
, markdown
|
||||
, isPy3k
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "cmdtest-${version}";
|
||||
version = "0.18";
|
||||
disabled = isPy3k || isPyPy;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://code.liw.fi/debian/pool/main/c/cmdtest/cmdtest_${version}.orig.tar.xz";
|
||||
sha256 = "068f24k8ad520hcf8g3gj7wvq1wspyd46ay0k9xa360jlb4dv2mn";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cliapp ttystatus markdown ];
|
||||
|
||||
# TODO: cmdtest tests must be run before the buildPhase
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://liw.fi/cmdtest/;
|
||||
description = "Black box tests Unix command line tools";
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
21
pkgs/development/python-modules/daemonize/default.nix
Normal file
21
pkgs/development/python-modules/daemonize/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "daemonize";
|
||||
version = "2.4.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0y139sq657bpzfv6k0aqm4071z4s40i6ybpni9qvngvdcz6r86n2";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Library to enable your code run as a daemon process on Unix-like systems";
|
||||
homepage = https://github.com/thesharp/daemonize;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
25
pkgs/development/python-modules/datadiff/default.nix
Normal file
25
pkgs/development/python-modules/datadiff/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "datadiff";
|
||||
version = "1.1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "f1402701063998f6a70609789aae8dc05703f3ad0a34882f6199653654c55543";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "DataDiff";
|
||||
homepage = https://sourceforge.net/projects/datadiff/;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
28
pkgs/development/python-modules/dot2tex/default.nix
Normal file
28
pkgs/development/python-modules/dot2tex/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, pyparsing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dot2tex";
|
||||
version = "2.9.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7d3e54add7dccdaeb6cc9e61ceaf7b587914cf8ebd6821cfea008acdc1e50d4a";
|
||||
};
|
||||
|
||||
# Tests fail with 3.x. Furthermore, package is no longer maintained.
|
||||
disabled = isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ pyparsing ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Convert graphs generated by Graphviz to LaTeX friendly formats";
|
||||
homepage = "https://github.com/kjellmf/dot2tex";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
28
pkgs/development/python-modules/eggdeps/default.nix
Normal file
28
pkgs/development/python-modules/eggdeps/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, zope_interface
|
||||
, zope_testing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "eggdeps";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a99de5e4652865224daab09b2e2574a4f7c1d0d9a267048f9836aa914a2caf3a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ zope_interface zope_testing ];
|
||||
|
||||
# tests fail, see http://hydra.nixos.org/build/4316603/log/raw
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A tool which computes a dependency graph between active Python eggs";
|
||||
homepage = http://thomas-lotze.de/en/software/eggdeps/;
|
||||
license = licenses.zpl20;
|
||||
};
|
||||
|
||||
}
|
27
pkgs/development/python-modules/evernote/default.nix
Normal file
27
pkgs/development/python-modules/evernote/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, oauth2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "evernote";
|
||||
version = "1.25.0";
|
||||
disabled = ! isPy27; #some dependencies do not work with py3
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1lwlg6fpi3530245jzham1400a5b855bm4sbdyck229h9kg1v02d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ oauth2 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Evernote SDK for Python";
|
||||
homepage = http://dev.evernote.com;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ hbunke ];
|
||||
};
|
||||
|
||||
}
|
29
pkgs/development/python-modules/flaskbabel/default.nix
Normal file
29
pkgs/development/python-modules/flaskbabel/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, flask
|
||||
, jinja2
|
||||
, speaklater
|
||||
, Babel
|
||||
, pytz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-Babel";
|
||||
version = "0.11.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "16b80cipdba9xj3jlaiaq6wgrgpjb70w3j01jjy9hbp4k71kd6yj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask jinja2 speaklater Babel pytz ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Adds i18n/l10n support to Flask applications";
|
||||
homepage = https://github.com/mitsuhiko/flask-babel;
|
||||
license = licenses.bsd0;
|
||||
maintainers = with maintainers; [ matejc ];
|
||||
};
|
||||
|
||||
}
|
28
pkgs/development/python-modules/freezegun/default.nix
Normal file
28
pkgs/development/python-modules/freezegun/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, dateutil
|
||||
, six
|
||||
, mock
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "freezegun";
|
||||
version = "0.3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1sf38d3ibv1jhhvr52x7dhrsiyqk1hm165dfv8w8wh0fhmgxg151";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dateutil six ];
|
||||
buildInputs = [ mock nose ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "FreezeGun: Let your Python tests travel through time";
|
||||
homepage = "https://github.com/spulec/freezegun";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
24
pkgs/development/python-modules/funcy/default.nix
Normal file
24
pkgs/development/python-modules/funcy/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "funcy";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "511495db0c5660af18d3151b008c6ce698ae7fbf60887278e79675e35eed1f01";
|
||||
};
|
||||
|
||||
# No tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Collection of fancy functional tools focused on practicality";
|
||||
homepage = "http://funcy.readthedocs.org/";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
24
pkgs/development/python-modules/gdata/default.nix
Normal file
24
pkgs/development/python-modules/gdata/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gdata";
|
||||
version = "2.0.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://gdata-python-client.googlecode.com/files/${pname}-${version}.tar.gz";
|
||||
sha256 = "1dpxl5hwyyqd71avpm5vkvw8fhlvf9liizmhrq9jphhrx0nx5rsn";
|
||||
};
|
||||
|
||||
# Fails with "error: invalid command 'test'"
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://code.google.com/p/gdata-python-client/;
|
||||
description = "Python client library for Google data APIs";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
38
pkgs/development/python-modules/geeknote/default.nix
Normal file
38
pkgs/development/python-modules/geeknote/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy27
|
||||
, thrift
|
||||
, beautifulsoup4
|
||||
, markdown2
|
||||
, sqlalchemy
|
||||
, html2text
|
||||
, evernote
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2015-05-11";
|
||||
pname = "geeknote";
|
||||
disabled = ! isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "VitaliyRodnenko";
|
||||
repo = "geeknote";
|
||||
rev = "8489a87d044e164edb321ba9acca8d4631de3dca";
|
||||
sha256 = "0l16v4xnyqnsf84b1pma0jmdyxvmfwcv3sm8slrv3zv7zpmcm3lf";
|
||||
};
|
||||
|
||||
/* build with tests fails with "Can not create application dirictory :
|
||||
/homeless-shelter/.geeknotebuilder". */
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ thrift beautifulsoup4 markdown2 sqlalchemy html2text evernote ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Work with Evernote from command line";
|
||||
homepage = http://www.geeknote.me;
|
||||
license = licenses.gpl1;
|
||||
maintainers = with maintainers; [ hbunke ];
|
||||
};
|
||||
|
||||
}
|
29
pkgs/development/python-modules/grequests/default.nix
Normal file
29
pkgs/development/python-modules/grequests/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
, gevent
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "grequests";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0lafzax5igbh8y4x0krizr573wjsxz7bhvwygiah6qwrzv83kv5c";
|
||||
};
|
||||
|
||||
# No tests in archive
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ requests gevent ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Asynchronous HTTP requests";
|
||||
homepage = https://github.com/kennethreitz/grequests;
|
||||
license = with licenses; [ bsd2 ];
|
||||
maintainers = with maintainers; [ matejc ];
|
||||
};
|
||||
|
||||
}
|
32
pkgs/development/python-modules/hgsvn/default.nix
Normal file
32
pkgs/development/python-modules/hgsvn/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, hglib
|
||||
, isPy3k
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hgsvn";
|
||||
version = "0.3.11";
|
||||
disabled = isPy3k || isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "0yvhwdh8xx8rvaqd3pnnyb99hfa0zjdciadlc933p27hp9rf880p";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
propagatedBuildInputs = [ hglib ];
|
||||
|
||||
doCheck = false; # too many assumptions
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pypi.python.org/pypi/hgsvn;
|
||||
description = "A set of scripts to work locally on Subversion checkouts using Mercurial";
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
}
|
21
pkgs/development/python-modules/html2text/default.nix
Normal file
21
pkgs/development/python-modules/html2text/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "html2text";
|
||||
version = "2016.9.19";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "554ef5fd6c6cf6e3e4f725a62a3e9ec86a0e4d33cd0928136d1c79dbeb7b2d55";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Turn HTML into equivalent Markdown-structured text";
|
||||
homepage = https://github.com/Alir3z4/html2text/;
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
32
pkgs/development/python-modules/imapclient/default.nix
Normal file
32
pkgs/development/python-modules/imapclient/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, isPy34
|
||||
, isPy35
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "IMAPClient";
|
||||
version = "0.13";
|
||||
disabled = isPy34 || isPy35;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://freshfoo.com/projects/IMAPClient/${pname}-${version}.tar.gz";
|
||||
sha256 = "0v7kd1crdbff0rmh4ddm5qszkis6hpk9084qh94al8h7g4y9l3is";
|
||||
};
|
||||
|
||||
buildInputs = [ mock ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i '/distribute_setup/d' setup.py
|
||||
substituteInPlace setup.py --replace "mock==0.8.0" "mock"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://imapclient.freshfoo.com/;
|
||||
description = "Easy-to-use, Pythonic and complete IMAP client library";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
26
pkgs/development/python-modules/importmagic/default.nix
Normal file
26
pkgs/development/python-modules/importmagic/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "importmagic";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "194bl8l8sc2ibwi6g5kz6xydkbngdqpaj6r2gcsaw1fc73iswwrj";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
doCheck = false; # missing json file from tarball
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python Import Magic - automagically add, remove and manage imports";
|
||||
homepage = https://github.com/alecthomas/importmagic;
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pip
|
||||
, pbr
|
||||
, mock
|
||||
, python-jenkins
|
||||
, pyyaml
|
||||
, six
|
||||
, stevedore
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jenkins-job-builder";
|
||||
version = "2.0.0.0b2";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1y0yl2w6c9c91f9xbjkvff1ag8p72r24nzparrzrw9sl8kn9632x";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
buildInputs = [ pip ];
|
||||
propagatedBuildInputs = [ pbr mock python-jenkins pyyaml six stevedore ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Jenkins Job Builder is a system for configuring Jenkins jobs using simple YAML files stored in Git";
|
||||
homepage = "https://docs.openstack.org/infra/system-config/jjb.html";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
|
||||
}
|
31
pkgs/development/python-modules/jenkinsapi/default.nix
Normal file
31
pkgs/development/python-modules/jenkinsapi/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytz
|
||||
, requests
|
||||
, coverage
|
||||
, mock
|
||||
, nose
|
||||
, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jenkinsapi";
|
||||
version = "0.2.32";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0fcc78b8dfc87237942aad2a8be54dbc08bc4afceaa7f6897f3d894e7d4bfd22";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pytz requests ];
|
||||
buildInputs = [ coverage mock nose unittest2 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Python API for accessing resources on a Jenkins continuous-integration server";
|
||||
homepage = https://github.com/salimfadhley/jenkinsapi;
|
||||
maintainers = with maintainers; [ drets ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
32
pkgs/development/python-modules/larch/default.nix
Normal file
32
pkgs/development/python-modules/larch/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, sphinx
|
||||
, tracing
|
||||
, ttystatus
|
||||
, cliapp
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "larch";
|
||||
version = "1.20131130";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://code.liw.fi/debian/pool/main/p/python-larch/python-larch_${version}.orig.tar.gz";
|
||||
sha256 = "1hfanp9l6yc5348i3f5sb8c5s4r43y382hflnbl6cnz4pm8yh5r7";
|
||||
};
|
||||
|
||||
buildInputs = [ sphinx ];
|
||||
propagatedBuildInputs = [ tracing ttystatus cliapp ];
|
||||
|
||||
# error: invalid command 'test'
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://liw.fi/larch/;
|
||||
description = "Python B-tree library";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ rickynils ];
|
||||
};
|
||||
|
||||
}
|
31
pkgs/development/python-modules/lasagne/default.nix
Normal file
31
pkgs/development/python-modules/lasagne/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, numpy
|
||||
, Theano
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Lasagne";
|
||||
version = "0.1";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0cqj86rdm6c7y5vq3i13qy76fg5xi3yjp4r0hpqy8hvynv54wqrw";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy Theano ];
|
||||
|
||||
# there are no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight library to build and train neural networks in Theano";
|
||||
homepage = "https://github.com/Lasagne/Lasagne";
|
||||
maintainers = with maintainers; [ NikolaMandic ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
36
pkgs/development/python-modules/libarchive-c/default.nix
Normal file
36
pkgs/development/python-modules/libarchive-c/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libarchive-c";
|
||||
version = "2.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "011bfsmqpcwd6920kckllh7zhw2y4rrasgmddb7wjzn2hg1xpsjn";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest pkgs.glibcLocales ];
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace libarchive/ffi.py --replace \
|
||||
"find_library('archive')" "'${pkgs.libarchive.lib}/lib/libarchive.so'"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests -k 'not test_check_archiveentry_with_unicode_entries_and_name_zip and not test_check_archiveentry_using_python_testtar'
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/Changaco/python-libarchive-c;
|
||||
description = "Python interface to libarchive";
|
||||
license = licenses.cc0;
|
||||
};
|
||||
|
||||
}
|
26
pkgs/development/python-modules/linecache2/default.nix
Normal file
26
pkgs/development/python-modules/linecache2/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pbr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "linecache2";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0z79g3ds5wk2lvnqw0y2jpakjf32h95bd9zmnvp7dnqhf57gy9jb";
|
||||
};
|
||||
|
||||
buildInputs = [ pbr ];
|
||||
# circular dependencies for tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A backport of linecache to older supported Pythons";
|
||||
homepage = "https://github.com/testing-cabal/linecache2";
|
||||
license = licenses.psfl;
|
||||
};
|
||||
|
||||
}
|
23
pkgs/development/python-modules/mailcap-fix/default.nix
Normal file
23
pkgs/development/python-modules/mailcap-fix/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy36
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mailcap-fix";
|
||||
version = "1.0.1";
|
||||
disabled = isPy36; # this fix is merged into python 3.6
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02lijkq6v379r8zkqg9q2srin3i80m4wvwik3hcbih0s14v0ng0i";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A patched mailcap module that conforms to RFC 1524";
|
||||
homepage = "https://github.com/michael-lazar/mailcap_fix";
|
||||
license = licenses.unlicense;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, click
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "maildir-deduplicate";
|
||||
version = "1.0.2";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1xy5z756alrjgpl9qx2gdx898rw1mryrqkwmipbh39mgrvkl3fz9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ click ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Command-line tool to deduplicate mails from a set of maildir folders";
|
||||
homepage = "https://github.com/kdeldycke/maildir-deduplicate";
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
}
|
39
pkgs/development/python-modules/mps-youtube/default.nix
Normal file
39
pkgs/development/python-modules/mps-youtube/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, pafy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "mps-youtube-${version}";
|
||||
version = "0.2.7.1";
|
||||
disabled = (!isPy3k);
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mps-youtube";
|
||||
repo = "mps-youtube";
|
||||
rev = "v${version}";
|
||||
sha256 = "16zn5gwb3568w95lr21b88zkqlay61p1541sa9c3x69zpi8v0pys";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pafy ];
|
||||
|
||||
# disabled due to error in loading unittest
|
||||
# don't know how to make test from: <mps_youtube. ...>
|
||||
doCheck = false;
|
||||
|
||||
# before check create a directory and redirect XDG_CONFIG_HOME to it
|
||||
preCheck = ''
|
||||
mkdir -p check-phase
|
||||
export XDG_CONFIG_HOME=$(pwd)/check-phase
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Terminal based YouTube player and downloader";
|
||||
homepage = https://github.com/np1/mps-youtube;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ odi ];
|
||||
};
|
||||
|
||||
}
|
35
pkgs/development/python-modules/neovim_gui/default.nix
Normal file
35
pkgs/development/python-modules/neovim_gui/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, neovim
|
||||
, click
|
||||
, pygobject3
|
||||
, isPy27
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "neovim-pygui";
|
||||
version = "0.1.3";
|
||||
disabled = !isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "neovim";
|
||||
repo = "python-gui";
|
||||
rev = version;
|
||||
sha256 = "1vpvr3zm3f9sxg1z1cl7f7gi8v1xksjdvxj62qnw65aqj3zqxnkz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ neovim click pygobject3 pkgs.gobjectIntrospection pkgs.makeWrapper pkgs.gtk3 ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i -e "s|entry_points=entry_points,|entry_points=dict(console_scripts=['pynvim=neovim.ui.cli:main [GUI]']),|" setup.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/pynvim \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
||||
--prefix PYTHONPATH : "${pygobject3}/lib/python2.7/site-packages:$PYTHONPATH"
|
||||
'';
|
||||
|
||||
}
|
32
pkgs/development/python-modules/nose_progressive/default.nix
Normal file
32
pkgs/development/python-modules/nose_progressive/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, pillow
|
||||
, blessings
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "nose-progressive";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0mfbjv3dcg23q0a130670g7xpfyvgza4wxkj991xxh8w9hs43ga4";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
propagatedBuildInputs = [ pillow blessings ];
|
||||
|
||||
# fails with obscure error
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/erikrose/nose-progressive;
|
||||
description = "A testrunner with a progress bar and smarter tracebacks";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
25
pkgs/development/python-modules/ofxparse/default.nix
Normal file
25
pkgs/development/python-modules/ofxparse/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, beautifulsoup4
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ofxparse";
|
||||
version = "0.14";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "d8c486126a94d912442d040121db44fbc4a646ea70fa935df33b5b4dbfbbe42a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six beautifulsoup4 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://sites.google.com/site/ofxparse";
|
||||
description = "Tools for working with the OFX (Open Financial Exchange) file format";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
30
pkgs/development/python-modules/ofxtools/default.nix
Normal file
30
pkgs/development/python-modules/ofxtools/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, sqlalchemy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ofxtools";
|
||||
version = "0.3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "88f289a60f4312a1599c38a8fb3216e2b46d10cc34476f9a16a33ac8aac7ec35";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s ofxtools
|
||||
'';
|
||||
|
||||
buildInputs = [ sqlalchemy ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/csingley/ofxtools";
|
||||
description = "Library for working with Open Financial Exchange (OFX) formatted data used by financial institutions";
|
||||
license = licenses.mit;
|
||||
broken = true;
|
||||
};
|
||||
|
||||
}
|
24
pkgs/development/python-modules/pandocfilters/default.nix
Normal file
24
pkgs/development/python-modules/pandocfilters/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec{
|
||||
version = "1.4.1";
|
||||
pname = "pandocfilters";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ec8bcd100d081db092c57f93462b1861bcfa1286ef126f34da5cb1d969538acd";
|
||||
};
|
||||
|
||||
# No tests available
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A python module for writing pandoc filters, with a collection of examples";
|
||||
homepage = https://github.com/jgm/pandocfilters;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
27
pkgs/development/python-modules/parsimonious/default.nix
Normal file
27
pkgs/development/python-modules/parsimonious/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7.0";
|
||||
pname = "parsimonious";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "parsimonious";
|
||||
owner = "erikrose";
|
||||
rev = version;
|
||||
sha256 = "087npc8ccryrxabmqifcz56w4wd0hzmv0mc91wrbhc1sil196j0a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ nose six ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/erikrose/parsimonious";
|
||||
description = "Fast arbitrary-lookahead parser written in pure Python";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
27
pkgs/development/python-modules/pid/default.nix
Normal file
27
pkgs/development/python-modules/pid/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pid";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0cylj8p25nwkdfgy4pzai21wyzmrxdqlwwbzqag9gb5qcjfdwk05";
|
||||
};
|
||||
|
||||
buildInputs = [ nose ];
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Pidfile featuring stale detection and file-locking";
|
||||
homepage = https://github.com/trbs/pid/;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
36
pkgs/development/python-modules/pilkit/default.nix
Normal file
36
pkgs/development/python-modules/pilkit/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pillow
|
||||
, nose_progressive
|
||||
, nose
|
||||
, mock
|
||||
, blessings
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pilkit";
|
||||
version = "1.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e00585f5466654ea2cdbf7decef9862cb00e16fd363017fa7ef6623a16b0d2c7";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py --replace 'nose==1.2.1' 'nose'
|
||||
'';
|
||||
|
||||
# tests fail, see https://github.com/matthewwithanm/pilkit/issues/9
|
||||
doCheck = false;
|
||||
|
||||
buildInputs = [ pillow nose_progressive nose mock blessings ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/matthewwithanm/pilkit/;
|
||||
description = "A collection of utilities and processors for the Python Imaging Libary";
|
||||
license = licenses.bsd0;
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
|
||||
}
|
36
pkgs/development/python-modules/pip2nix/default.nix
Normal file
36
pkgs/development/python-modules/pip2nix/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, click
|
||||
, configobj
|
||||
, contexter
|
||||
, jinja2
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pip2nix";
|
||||
version = "0.7.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ec9a71e09ac7f43cc7b6c9d386384eb7b5c331bf6ea0e72ca559d87979397a95";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ click configobj contexter jinja2 pytest ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i "s/'pip>=8,<10'/'pip'/" setup.py
|
||||
sed -i "s/pip<10,>=8/pip/" ${pname}.egg-info/requires.txt
|
||||
'';
|
||||
|
||||
# tests not included with pypi release
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Generate Nix expressions for Python packages";
|
||||
homepage = https://github.com/johbo/pip2nix;
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
27
pkgs/development/python-modules/pivy/default.nix
Normal file
27
pkgs/development/python-modules/pivy/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchhg
|
||||
, pkgs
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "20101207";
|
||||
pname = "pivy";
|
||||
disabled = isPy3k; # Judging from SyntaxError
|
||||
|
||||
src = fetchhg {
|
||||
url = "https://bitbucket.org/Coin3D/pivy";
|
||||
rev = "8eab90908f2a3adcc414347566f4434636202344";
|
||||
sha256 = "18n14ha2d3j3ghg2f2aqnf2mks94nn7ma9ii7vkiwcay93zm82cf";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.swig1 pkgs.coin3d pkgs.soqt pkgs.libGLU_combined pkgs.xorg.libXi ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://pivy.coin3d.org/;
|
||||
description = "A Python binding for Coin";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
24
pkgs/development/python-modules/power/default.nix
Normal file
24
pkgs/development/python-modules/power/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "power";
|
||||
version = "1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "7d7d60ec332acbe3a7d00379b45e39abf650bf7ee311d61da5ab921f52f060f0";
|
||||
};
|
||||
|
||||
# Tests can't work because there is no power information available.
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Cross-platform system power status information";
|
||||
homepage = https://github.com/Kentzo/Power;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
30
pkgs/development/python-modules/pweave/default.nix
Normal file
30
pkgs/development/python-modules/pweave/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mock
|
||||
, matplotlib
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Pweave";
|
||||
version = "0.25";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1isqjz66c7vxdaqfwpkspki9p4054dsfx7pznwz28ik634hnj3qw";
|
||||
};
|
||||
|
||||
buildInputs = [ mock pkgs.glibcLocales ];
|
||||
propagatedBuildInputs = [ matplotlib ];
|
||||
|
||||
# fails due to trying to run CSS as test
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Scientific reports with embedded python computations with reST, LaTeX or markdown";
|
||||
homepage = http://mpastell.com/pweave/ ;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
30
pkgs/development/python-modules/py3dns/default.nix
Normal file
30
pkgs/development/python-modules/py3dns/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py3dns";
|
||||
version = "3.1.1a";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0z0qmx9j1ivpgg54gqqmh42ljnzxaychc5inz2gbgv0vls765smz";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
sed -i \
|
||||
-e '/import DNS/d' \
|
||||
-e 's/DNS.__version__/"${version}"/g' \
|
||||
setup.py
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python 3 DNS library";
|
||||
homepage = https://launchpad.net/py3dns;
|
||||
license = licenses.psfl;
|
||||
};
|
||||
|
||||
}
|
30
pkgs/development/python-modules/pychef/default.nix
Normal file
30
pkgs/development/python-modules/pychef/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, requests
|
||||
, mock
|
||||
, unittest2
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PyChef";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0zdz8lw545cd3a34cpib7mdwnad83gr2mrrxyj3v74h4zhwabhmg";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six requests mock unittest2 ];
|
||||
|
||||
# FIXME
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://github.com/coderanger/pychef;
|
||||
description = "Python implementation of a Chef API client";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
25
pkgs/development/python-modules/pydenticon/default.nix
Normal file
25
pkgs/development/python-modules/pydenticon/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pillow
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydenticon";
|
||||
version = "0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "035dawcspgjw2rksbnn863s7b0i9ac8cc1nshshvd1l837ir1czp";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pillow mock ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/azaghal/pydenticon;
|
||||
description = "Library for generating identicons. Port of Sigil (https://github.com/cupcake/sigil) with enhancements";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
23
pkgs/development/python-modules/pydns/default.nix
Normal file
23
pkgs/development/python-modules/pydns/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydns";
|
||||
version = "2.3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0qnv7i9824nb5h9psj0rwzjyprwgfiwh5s5raa9avbqazy5hv5pi";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python DNS library";
|
||||
homepage = http://pydns.sourceforge.net/;
|
||||
license = licenses.psfl;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pygments
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygments-markdown-lexer";
|
||||
version = "0.1.0.dev39";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "1pzb5wy23q3fhs0rqzasjnw6hdzwjngpakb73i98cn0b8lk8q4jc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygments ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/jhermann/pygments-markdown-lexer;
|
||||
description = "Pygments Markdown Lexer – A Markdown lexer for Pygments to highlight Markdown code snippets";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
26
pkgs/development/python-modules/pykka/default.nix
Normal file
26
pkgs/development/python-modules/pykka/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchgit
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pykka";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/jodal/pykka.git";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "0qlfw1054ap0cha1m6dbnq51kjxqxaf338g7jwnwy33b3gr8x0hg";
|
||||
};
|
||||
|
||||
# There are no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.pykka.org;
|
||||
description = "A Python implementation of the actor model";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ rickynils ];
|
||||
};
|
||||
|
||||
}
|
21
pkgs/development/python-modules/pynac/default.nix
Normal file
21
pkgs/development/python-modules/pynac/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pynac";
|
||||
version = "0.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/pynac/pynac/pynac-0.2/pynac-0.2.tar.gz";
|
||||
sha256 = "0avzqqcxl54karjmla9jbsyid98mva36lxahwmrsx5h40ys2ggxp";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/se-esss-litterbox/Pynac;
|
||||
description = "A Python wrapper around the Dynac charged particle simulator";
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
34
pkgs/development/python-modules/pync/default.nix
Normal file
34
pkgs/development/python-modules/pync/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy27
|
||||
, dateutil
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.4";
|
||||
pname = "pync";
|
||||
disabled = ! isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0lc1x0pai85avm1r452xnvxc12wijnhz87xv20yp3is9fs6rnkrh";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.coreutils ];
|
||||
propagatedBuildInputs = [ dateutil ];
|
||||
|
||||
preInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
sed -i 's|^\([ ]*\)self.bin_path.*$|\1self.bin_path = "${pkgs.terminal-notifier}/bin/terminal-notifier"|' build/lib/pync/TerminalNotifier.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python Wrapper for Mac OS 10.8 Notification Center";
|
||||
homepage = https://pypi.python.org/pypi/pync/1.4;
|
||||
license = licenses.mit;
|
||||
platforms = platforms.darwin;
|
||||
maintainers = with maintainers; [ lovek323 ];
|
||||
};
|
||||
|
||||
}
|
30
pkgs/development/python-modules/pypeg2/default.nix
Normal file
30
pkgs/development/python-modules/pypeg2/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.15.2";
|
||||
pname = "pypeg2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0v8ziaam2r637v94ra4dbjw6jzxz99gs5x4i585kgag1v204yb9b";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
# The tests assume that test_xmlast does not run before test_pyPEG2.
|
||||
python -m unittest pypeg2.test.test_pyPEG2 pypeg2.test.test_xmlast
|
||||
'';
|
||||
|
||||
#https://bitbucket.org/fdik/pypeg/issues/36/test-failures-on-py35
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "PEG parser interpreter in Python";
|
||||
homepage = http://fdik.org/pyPEG;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
}
|
44
pkgs/development/python-modules/pyspotify/default.nix
Normal file
44
pkgs/development/python-modules/pyspotify/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, cffi
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyspotify";
|
||||
version = "2.0.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/mopidy/pyspotify/archive/v${version}.tar.gz";
|
||||
sha256 = "1ilbz2w1gw3f1bpapfa09p84dwh08bf7qcrkmd3aj0psz57p2rls";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ cffi ];
|
||||
buildInputs = [ pkgs.libspotify ];
|
||||
|
||||
# python zip complains about old timestamps
|
||||
preConfigure = ''
|
||||
find -print0 | xargs -0 touch
|
||||
'';
|
||||
|
||||
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
find "$out" -name _spotify.so -exec \
|
||||
install_name_tool -change \
|
||||
@loader_path/../Frameworks/libspotify.framework/libspotify \
|
||||
${pkgs.libspotify}/lib/libspotify.dylib \
|
||||
{} \;
|
||||
'';
|
||||
|
||||
# There are no tests
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://pyspotify.mopidy.com;
|
||||
description = "A Python interface to Spotify’s online music streaming service";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ lovek323 rickynils ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, isPy3k
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "3.1.2-1";
|
||||
pname = "libarchive";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://python-libarchive.googlecode.com/files/python-libarchive-${version}.tar.gz";
|
||||
sha256 = "0j4ibc4mvq64ljya9max8832jafi04jciff9ia9qy0xhhlwkcx8x";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pkgs.libarchive.lib ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Multi-format archive and compression library";
|
||||
homepage = https://libarchive.org/;
|
||||
license = licenses.bsd0;
|
||||
broken = true;
|
||||
};
|
||||
|
||||
}
|
24
pkgs/development/python-modules/python_mimeparse/default.nix
Normal file
24
pkgs/development/python-modules/python_mimeparse/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-mimeparse";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hyxg09kaj02ri0rmwjqi86wk4nd1akvv7n0dx77azz76wga4s9w";
|
||||
};
|
||||
|
||||
# error: invalid command 'test'
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges";
|
||||
homepage = https://code.google.com/p/mimeparse/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
28
pkgs/development/python-modules/python_statsd/default.nix
Normal file
28
pkgs/development/python-modules/python_statsd/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, mock
|
||||
, nose
|
||||
, coverage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-statsd";
|
||||
version = "1.6.0";
|
||||
disabled = isPy3k; # next release will be py3k compatible
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3d2fc153e0d894aa9983531ef47d20d75bd4ee9fd0e46a9d82f452dde58a0a71";
|
||||
};
|
||||
|
||||
buildInputs = [ mock nose coverage ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A client for Etsy's node-js statsd server";
|
||||
homepage = https://github.com/WoLpH/python-statsd;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
29
pkgs/development/python-modules/pyuv/default.nix
Normal file
29
pkgs/development/python-modules/pyuv/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, isPyPy
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyuv";
|
||||
version = "1.2.0";
|
||||
disabled = isPyPy; # see https://github.com/saghul/pyuv/issues/49
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/saghul/pyuv/archive/${pname}-${version}.tar.gz";
|
||||
sha256 = "19yl1l5l6dq1xr8xcv6dhx1avm350nr4v2358iggcx4ma631rycx";
|
||||
};
|
||||
|
||||
patches = [ ./pyuv-external-libuv.patch ];
|
||||
|
||||
buildInputs = [ pkgs.libuv ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python interface for libuv";
|
||||
homepage = https://github.com/saghul/pyuv;
|
||||
repositories.git = git://github.com/saghul/pyuv.git;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
28
pkgs/development/python-modules/qrcode/default.nix
Normal file
28
pkgs/development/python-modules/qrcode/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, six
|
||||
, pillow
|
||||
, pymaging_png
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "qrcode";
|
||||
version = "5.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0kljfrfq0c2rmxf8am57333ia41kd0snbm2rnqbdy816hgpcq5a1";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ six pillow pymaging_png ];
|
||||
checkInputs = [ mock ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Quick Response code generation for Python";
|
||||
homepage = "https://pypi.python.org/pypi/qrcode";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
25
pkgs/development/python-modules/queuelib/default.nix
Normal file
25
pkgs/development/python-modules/queuelib/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "queuelib";
|
||||
version = "1.4.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a6829918157ed433fafa87b0bb1e93e3e63c885270166db5884a02c34c86f914";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A collection of persistent (disk-based) queues for Python";
|
||||
homepage = "https://github.com/scrapy/queuelib";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ drewkett ];
|
||||
};
|
||||
|
||||
}
|
26
pkgs/development/python-modules/repeated_test/default.nix
Normal file
26
pkgs/development/python-modules/repeated_test/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, unittest2
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "repeated_test";
|
||||
version = "0.1a3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "062syp7kl2g0x6qx3z8zb5sdycpi7qcpxp9iml2v8dqzqnij9bpg";
|
||||
};
|
||||
|
||||
buildInputs = [ unittest2 ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A quick unittest-compatible framework for repeating a test function over many fixtures";
|
||||
homepage = "https://github.com/epsy/repeated_test";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
21
pkgs/development/python-modules/rpdb/default.nix
Normal file
21
pkgs/development/python-modules/rpdb/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "rpdb";
|
||||
version = "0.1.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0rql1hq3lziwcql0h3dy05w074cn866p397ng9bv6qbz85ifw1bk";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "pdb wrapper with remote access via tcp socket";
|
||||
homepage = https://github.com/tamentis/rpdb;
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
|
||||
}
|
26
pkgs/development/python-modules/sandboxlib/default.nix
Normal file
26
pkgs/development/python-modules/sandboxlib/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pbr
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sandboxlib";
|
||||
version = "0.31";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0csj8hbpylqdkxcpqkcfs73dfvdqkyj23axi8m9drqdi4dhxb41h";
|
||||
};
|
||||
|
||||
buildInputs = [ pbr ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Sandboxing Library for Python";
|
||||
homepage = https://pypi.python.org/pypi/sandboxlib/0.3.1;
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
|
||||
}
|
29
pkgs/development/python-modules/scales/default.nix
Normal file
29
pkgs/development/python-modules/scales/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "scales";
|
||||
version = "1.0.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8b6930f7d4bf115192290b44c757af5e254e3fcfcb75ff9a51f5c96a404e2753";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Stats for Python processes";
|
||||
homepage = https://www.github.com/Cue/scales;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
30
pkgs/development/python-modules/semantic/default.nix
Normal file
30
pkgs/development/python-modules/semantic/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, quantities
|
||||
, numpy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "semantic";
|
||||
version = "1.0.3";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "bbc47dad03dddb1ba5895612fdfa1e43cfb3c497534976cebacd4f3684b505b4";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ quantities numpy ];
|
||||
|
||||
# strange setuptools error (can not import semantic.test)
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Common Natural Language Processing Tasks for Python";
|
||||
homepage = https://github.com/crm416/semantic;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
22
pkgs/development/python-modules/setproctitle/default.nix
Normal file
22
pkgs/development/python-modules/setproctitle/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-setproctitle";
|
||||
version = "1.1.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1mqadassxcm0m9r1l02m5vr4bbandn48xz8gifvxmb4wiz8i8d0w";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Allows a process to change its title (as displayed by system tools such as ps and top)";
|
||||
homepage = https://github.com/dvarrazzo/py-setproctitle;
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ exi ];
|
||||
};
|
||||
|
||||
}
|
23
pkgs/development/python-modules/sexpdata/default.nix
Normal file
23
pkgs/development/python-modules/sexpdata/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sexpdata";
|
||||
version = "0.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "eb696bc66b35def5fb356de09481447dff4e9a3ed926823134e1d0f35eade428";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "S-expression parser for Python";
|
||||
homepage = "https://github.com/tkf/sexpdata";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
23
pkgs/development/python-modules/sh/default.nix
Normal file
23
pkgs/development/python-modules/sh/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sh";
|
||||
version = "1.11";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "590fb9b84abf8b1f560df92d73d87965f1e85c6b8330f8a5f6b336b36f0559a4";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python subprocess interface";
|
||||
homepage = https://pypi.python.org/pypi/sh/;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
26
pkgs/development/python-modules/signedjson/default.nix
Normal file
26
pkgs/development/python-modules/signedjson/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchgit
|
||||
, canonicaljson
|
||||
, unpaddedbase64
|
||||
, pynacl
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "signedjson";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/matrix-org/python-signedjson.git";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "0b8xxhc3npd4567kqapfp4gs7m0h057xam3an7424az262ind82n";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ canonicaljson unpaddedbase64 pynacl ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://pypi.org/project/signedjson/;
|
||||
description = "Sign JSON with Ed25519 signatures";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
33
pkgs/development/python-modules/sigtools/default.nix
Normal file
33
pkgs/development/python-modules/sigtools/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, repeated_test
|
||||
, sphinx
|
||||
, mock
|
||||
, coverage
|
||||
, unittest2
|
||||
, funcsigs
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sigtools";
|
||||
version = "1.1a3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "190w14vzbiyvxcl9jmyyimpahar5b0bq69v9iv7chi852yi71w6w";
|
||||
};
|
||||
|
||||
buildInputs = [ repeated_test sphinx mock coverage unittest2 ];
|
||||
propagatedBuildInputs = [ funcsigs six ];
|
||||
|
||||
patchPhase = ''sed -i s/test_suite="'"sigtools.tests"'"/test_suite="'"unittest2.collector"'"/ setup.py'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Utilities for working with 3.3's inspect.Signature objects.";
|
||||
homepage = "https://pypi.python.org/pypi/sigtools";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
29
pkgs/development/python-modules/simpleai/default.nix
Normal file
29
pkgs/development/python-modules/simpleai/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, numpy
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.7.11";
|
||||
pname = "simpleai";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "03frjc5jxsz9xm24jz7qa4hcp0dicgazrxkdsa2rsnir672lwkwz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
#No tests in archive
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/simpleai-team/simpleai;
|
||||
description = "This lib implements many of the artificial intelligence algorithms described on the book 'Artificial Intelligence, a Modern Approach'";
|
||||
maintainers = with maintainers; [ NikolaMandic ];
|
||||
};
|
||||
|
||||
}
|
41
pkgs/development/python-modules/sipsimple/default.nix
Normal file
41
pkgs/development/python-modules/sipsimple/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchdarcs
|
||||
, isPy3k
|
||||
, pkgs
|
||||
, cython
|
||||
, dnspython
|
||||
, dateutil
|
||||
, xcaplib
|
||||
, msrplib
|
||||
, lxml
|
||||
, python-otr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sipsimple";
|
||||
version = "3.1.1";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchdarcs {
|
||||
url = http://devel.ag-projects.com/repositories/python-sipsimple;
|
||||
rev = "release-${version}";
|
||||
sha256 = "0jdilm11f5aahxrzrkxrfx9sgjgkbla1r0wayc5dzd2wmjrdjyrg";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
chmod +x ./deps/pjsip/configure ./deps/pjsip/aconfigure
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = with pkgs; [ alsaLib ffmpeg libv4l sqlite libvpx ];
|
||||
propagatedBuildInputs = [ cython pkgs.openssl dnspython dateutil xcaplib msrplib lxml python-otr ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "SIP SIMPLE implementation for Python";
|
||||
homepage = http://sipsimpleclient.org/;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
|
||||
}
|
25
pkgs/development/python-modules/smartdc/default.nix
Normal file
25
pkgs/development/python-modules/smartdc/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
, http_signature
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "smartdc";
|
||||
version = "0.1.12";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "36206f4fddecae080c66faf756712537e650936b879abb23a8c428731d2415fe";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests http_signature ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Joyent SmartDataCenter CloudAPI connector using http-signature authentication via Requests";
|
||||
homepage = https://github.com/atl/py-smartdc;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
25
pkgs/development/python-modules/smartypants/default.nix
Normal file
25
pkgs/development/python-modules/smartypants/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchhg
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "1.8.6";
|
||||
pname = "smartypants";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchhg {
|
||||
url = "https://bitbucket.org/livibetter/smartypants.py";
|
||||
rev = "v${version}";
|
||||
sha256 = "1cmzz44d2hm6y8jj2xcq1wfr26760gi7iq92ha8xbhb1axzd7nq6";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python with the SmartyPants";
|
||||
homepage = "https://bitbucket.org/livibetter/smartypants.py";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ garbas ];
|
||||
};
|
||||
|
||||
}
|
41
pkgs/development/python-modules/smugline/default.nix
Normal file
41
pkgs/development/python-modules/smugline/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, docopt
|
||||
, requests
|
||||
, smugpy
|
||||
, python
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "smugline";
|
||||
version = "20160106";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "gingerlime";
|
||||
repo = pname;
|
||||
rev = "134554c574c2d282112ba60165a8c5ffe0f16fd4";
|
||||
sha256 = "00n012ijkdrx8wsl8x3ghdcxcdp29s4kwr3yxvlyj79g5yhfvaj6";
|
||||
};
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
buildInputs = [ python pkgs.makeWrapper ];
|
||||
propagatedBuildInputs = [ docopt requests smugpy ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/libexec
|
||||
cp smugline.py $out/libexec
|
||||
makeWrapper ${python.interpreter} $out/bin/smugline \
|
||||
--add-flags "$out/libexec/smugline.py" \
|
||||
--prefix PYTHONPATH : "$PYTHONPATH"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/gingerlime/smugline;
|
||||
description = "A simple command line tool for smugmug ";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
30
pkgs/development/python-modules/snappergui/default.nix
Normal file
30
pkgs/development/python-modules/snappergui/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchgit
|
||||
, pygobject3
|
||||
, dbus-python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "Snapper-GUI";
|
||||
version = "0.1";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/ricardomv/snapper-gui";
|
||||
rev = "11d98586b122180c75a86fccda45c4d7e3137591";
|
||||
sha256 = "7a9f86fc17dbf130526e70c3e925eac30e2c74d6b932efbf7e7cd9fbba6dc4b1";
|
||||
};
|
||||
|
||||
# no tests available
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ pygobject3 dbus-python ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/ricardomv/snapper-gui;
|
||||
description = "Graphical frontend for snapper";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ tstrobel ];
|
||||
};
|
||||
|
||||
}
|
21
pkgs/development/python-modules/socksipy-branch/default.nix
Normal file
21
pkgs/development/python-modules/socksipy-branch/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "SocksiPy-branch";
|
||||
version = "1.01";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://code.google.com/p/socksipy-branch/;
|
||||
description = "This Python module allows you to create TCP connections through a SOCKS proxy without any special effort";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
24
pkgs/development/python-modules/sorl_thumbnail/default.nix
Normal file
24
pkgs/development/python-modules/sorl_thumbnail/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sorl-thumbnail";
|
||||
version = "11.12";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "050b9kzbx7jvs3qwfxxshhis090hk128maasy8pi5wss6nx5kyw4";
|
||||
};
|
||||
|
||||
# Disabled due to an improper configuration error when tested against django. This looks like something broken in the test cases for sorl.
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://sorl-thumbnail.readthedocs.org/en/latest/;
|
||||
description = "Thumbnails for Django";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
22
pkgs/development/python-modules/speaklater/default.nix
Normal file
22
pkgs/development/python-modules/speaklater/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "speaklater";
|
||||
version = "1.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1ab5dbfzzgz6cnz4xlwx79gz83id4bhiw67k1cgqrlzfs0va7zjr";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Implements a lazy string for python useful for use with gettext";
|
||||
homepage = https://github.com/mitsuhiko/speaklater;
|
||||
license = licenses.bsd0;
|
||||
maintainers = with maintainers; [ matejc ];
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Sphinx-PyPI-upload";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5f919a47ce7a7e6028dba809de81ae1297ac192347cf6fc54efca919d4865159";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Setuptools command for uploading Sphinx documentation to PyPI";
|
||||
homepage = https://bitbucket.org/jezdez/sphinx-pypi-upload/;
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
22
pkgs/development/python-modules/sphinx_rtd_theme/default.nix
Normal file
22
pkgs/development/python-modules/sphinx_rtd_theme/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinx_rtd_theme";
|
||||
version = "0.2.5b2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0grf16fi4g0p3dfh11b1624ic34iqkjhf5i1g6hvsh4nlm0ll00q";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "ReadTheDocs.org theme for Sphinx";
|
||||
homepage = https://github.com/snide/sphinx_rtd_theme/;
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, python
|
||||
, mock
|
||||
, sphinx-testing
|
||||
, sphinx
|
||||
, blockdiag
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinxcontrib-blockdiag";
|
||||
version = "1.5.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1w7q2hhpzk159wd35hlbwkh80hnglqa475blcd9vjwpkv1kgkpvw";
|
||||
};
|
||||
|
||||
buildInputs = [ mock sphinx-testing ];
|
||||
propagatedBuildInputs = [ sphinx blockdiag ];
|
||||
|
||||
# Seems to look for files in the wrong dir
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m unittest discover -s tests
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Sphinx blockdiag extension";
|
||||
homepage = "https://github.com/blockdiag/sphinxcontrib-blockdiag";
|
||||
maintainers = with maintainers; [ nand0p ];
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools_scm
|
||||
, pyyaml
|
||||
, jsonschema
|
||||
, sphinxcontrib_httpdomain
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinxcontrib-openapi";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0fyniq37nnmhrk4j7mzvg6vfcpb624hb9x70g6mccyw4xrnhadv6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [setuptools_scm pyyaml jsonschema sphinxcontrib_httpdomain];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/ikalnytskyi/sphinxcontrib-openapi;
|
||||
description = "OpenAPI (fka Swagger) spec renderer for Sphinx";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sphinx
|
||||
, pyenchant
|
||||
, pbr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinxcontrib-spelling";
|
||||
version = "2.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1f0fymrk4kvhqs0vj9gay4lhacxkfrlrpj4gvg0p4wjdczplxd3z";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ sphinx pyenchant pbr ];
|
||||
|
||||
# No tests included
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Sphinx spelling extension";
|
||||
homepage = https://bitbucket.org/dhellmann/sphinxcontrib-spelling;
|
||||
maintainers = with maintainers; [ nand0p ];
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sphinx
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinxcontrib-httpdomain";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0srg8lwf4m1hyhz942fcdfxh689xphndngiidb575qmfbi89gc7a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ sphinx ];
|
||||
|
||||
# Check is disabled due to this issue:
|
||||
# https://bitbucket.org/pypa/setuptools/issue/137/typeerror-unorderable-types-str-nonetype
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Provides a Sphinx domain for describing RESTful HTTP APIs";
|
||||
homepage = https://bitbucket.org/birkenfeld/sphinx-contrib;
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sphinx
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinxcontrib-newsfeed";
|
||||
version = "0.1.4";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1d7gam3mn8v4in4p16yn3v10vps7nnaz6ilw99j4klij39dqd37p";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ sphinx ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Extension for adding a simple Blog, News or Announcements section to a Sphinx website";
|
||||
homepage = https://bitbucket.org/prometheus/sphinxcontrib-newsfeed;
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sphinx
|
||||
, plantuml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinxcontrib-plantuml";
|
||||
version = "0.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "011yprqf41dcm1824zgk2w8vi9115286pmli6apwhlrsxc6b6cwv";
|
||||
};
|
||||
|
||||
# No tests included.
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ sphinx plantuml ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Provides a Sphinx domain for embedding UML diagram with PlantUML";
|
||||
homepage = https://bitbucket.org/birkenfeld/sphinx-contrib;
|
||||
license = with licenses; [ bsd2 ];
|
||||
};
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest
|
||||
, Wand
|
||||
, webob
|
||||
, sqlalchemy
|
||||
, isPyPy
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "SQLAlchemy-ImageAttach";
|
||||
version = "1.0.0";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
repo = "sqlalchemy-imageattach";
|
||||
owner = "dahlia";
|
||||
rev = "${version}";
|
||||
sha256 = "0ba97pn5dh00qvxyjbr0mr3pilxqw5kb3a6jd4wwbsfcv6nngqig";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest Wand.imagemagick webob ];
|
||||
propagatedBuildInputs = [ sqlalchemy Wand ];
|
||||
|
||||
checkPhase = ''
|
||||
cd tests
|
||||
export MAGICK_HOME="${pkgs.imagemagick.dev}"
|
||||
export PYTHONPATH=$PYTHONPATH:../
|
||||
py.test
|
||||
cd ..
|
||||
'';
|
||||
|
||||
doCheck = !isPyPy; # failures due to sqla version mismatch
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/dahlia/sqlalchemy-imageattach;
|
||||
description = "SQLAlchemy extension for attaching images to entity objects";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
34
pkgs/development/python-modules/sqlparse/default.nix
Normal file
34
pkgs/development/python-modules/sqlparse/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sqlparse";
|
||||
version = "0.2.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "08dszglfhf1c4rwqinkbp4x55v0b90rgm1fxc1l4dy965imjjinl";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
# Package supports 3.x, but tests are clearly 2.x only.
|
||||
doCheck = !isPy3k;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Non-validating SQL parser for Python";
|
||||
longDescription = ''
|
||||
Provides support for parsing, splitting and formatting SQL statements.
|
||||
'';
|
||||
homepage = https://github.com/andialbrecht/sqlparse;
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
|
||||
}
|
29
pkgs/development/python-modules/stompclient/default.nix
Normal file
29
pkgs/development/python-modules/stompclient/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, mock
|
||||
, nose
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "stompclient";
|
||||
version = "0.3.2";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "95a4e98dd0bba348714439ea11a25ee8a74acb8953f95a683924b5bf2a527e4e";
|
||||
};
|
||||
|
||||
buildInputs = [ mock nose ];
|
||||
|
||||
# XXX: Ran 0 tests in 0.217s
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight and extensible STOMP messaging client";
|
||||
homepage = https://bitbucket.org/hozn/stompclient;
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
66
pkgs/development/python-modules/subdownloader/default.nix
Normal file
66
pkgs/development/python-modules/subdownloader/default.nix
Normal file
|
@ -0,0 +1,66 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, mmpython
|
||||
, pyqt4
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "2.0.18";
|
||||
pname = "subdownloader";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://launchpad.net/subdownloader/trunk/2.0.18/+download/subdownloader_2.0.18.orig.tar.gz";
|
||||
sha256 = "0manlfdpb585niw23ibb8n21mindd1bazp0pnxvmdjrp2mnw97ig";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ mmpython pyqt4 ];
|
||||
|
||||
setup = ''
|
||||
import os
|
||||
import sys
|
||||
|
||||
try:
|
||||
if os.environ.get("NO_SETUPTOOLS"):
|
||||
raise ImportError()
|
||||
from setuptools import setup, Extension
|
||||
SETUPTOOLS = True
|
||||
except ImportError:
|
||||
SETUPTOOLS = False
|
||||
# Use distutils.core as a fallback.
|
||||
# We won t be able to build the Wheel file on Windows.
|
||||
from distutils.core import setup, Extension
|
||||
|
||||
with open("README") as fp:
|
||||
long_description = fp.read()
|
||||
|
||||
requirements = [ ]
|
||||
|
||||
install_options = {
|
||||
"name": "subdownloader",
|
||||
"version": "2.0.18",
|
||||
"description": "Tool for automatic download/upload subtitles for videofiles using fast hashing",
|
||||
"long_description": long_description,
|
||||
"url": "http://www.subdownloader.net",
|
||||
|
||||
"scripts": ["run.py"],
|
||||
"packages": ["cli", "FileManagement", "gui", "languages", "modules"],
|
||||
|
||||
}
|
||||
if SETUPTOOLS:
|
||||
install_options["install_requires"] = requirements
|
||||
|
||||
setup(**install_options)
|
||||
'';
|
||||
|
||||
postUnpack = ''
|
||||
echo '${setup}' > $sourceRoot/setup.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tool for automatic download/upload subtitles for videofiles using fast hashing";
|
||||
homepage = http://www.subdownloader.net;
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
21
pkgs/development/python-modules/subunit/default.nix
Normal file
21
pkgs/development/python-modules/subunit/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ buildPythonPackage
|
||||
, pkgs
|
||||
, testtools
|
||||
, testscenarios
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = pkgs.subunit.name;
|
||||
src = pkgs.subunit.src;
|
||||
|
||||
propagatedBuildInputs = [ testtools testscenarios ];
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = [ pkgs.check pkgs.cppunit ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's/version=VERSION/version="${pkgs.subunit.version}"/' setup.py
|
||||
'';
|
||||
|
||||
meta = pkgs.subunit.meta;
|
||||
|
||||
}
|
33
pkgs/development/python-modules/suds-jurko/default.nix
Normal file
33
pkgs/development/python-modules/suds-jurko/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "suds-jurko";
|
||||
version = "0.6";
|
||||
disabled = isPyPy; # lots of failures
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "1s4radwf38kdh3jrn5acbidqlr66sx786fkwi0rgq61hn4n2bdqw";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
preBuild = ''
|
||||
# fails
|
||||
substituteInPlace tests/test_transport_http.py \
|
||||
--replace "test_sending_unicode_data" "noop"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight SOAP client (Jurko's fork)";
|
||||
homepage = https://bitbucket.org/jurko/suds;
|
||||
license = licenses.lgpl3;
|
||||
};
|
||||
|
||||
}
|
29
pkgs/development/python-modules/suds/default.nix
Normal file
29
pkgs/development/python-modules/suds/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "suds";
|
||||
version = "0.4";
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1w4s9051iv90c0gs73k80c3d51y2wbx1xgfdgg2hk7mv4gjlllnm";
|
||||
};
|
||||
|
||||
patches = [ ./suds-0.4-CVE-2013-2217.patch ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
# Broken for security issues:
|
||||
# - https://github.com/NixOS/nixpkgs/issues/19678
|
||||
# - https://lwn.net/Vulnerabilities/559200/
|
||||
broken = true;
|
||||
description = "Lightweight SOAP client";
|
||||
homepage = https://fedorahosted.org/suds;
|
||||
license = licenses.lgpl3Plus;
|
||||
};
|
||||
|
||||
}
|
32
pkgs/development/python-modules/sure/default.nix
Normal file
32
pkgs/development/python-modules/sure/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, nose
|
||||
, six
|
||||
, mock
|
||||
, pkgs
|
||||
, isPyPy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sure";
|
||||
version = "1.2.24";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1lyjq0rvkbv585dppjdq90lbkm6gyvag3wgrggjzyh7cpyh5c12w";
|
||||
};
|
||||
|
||||
LC_ALL="en_US.UTF-8";
|
||||
|
||||
buildInputs = [ nose pkgs.glibcLocales ];
|
||||
propagatedBuildInputs = [ six mock ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Utility belt for automated testing";
|
||||
homepage = https://falcao.it/sure/;
|
||||
license = licenses.gpl3Plus;
|
||||
};
|
||||
|
||||
}
|
28
pkgs/development/python-modules/svg2tikz/default.nix
Normal file
28
pkgs/development/python-modules/svg2tikz/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchgit
|
||||
, lxml
|
||||
, isPy27
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
name = "svg2tikz";
|
||||
version = "1.0.0";
|
||||
disabled = ! isPy27;
|
||||
|
||||
propagatedBuildInputs = [ lxml ];
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://github.com/kjellmf/svg2tikz";
|
||||
sha256 = "429428ec435e53672b85cdfbb89bb8af0ff9f8238f5d05970729e5177d252d5f";
|
||||
rev = "ad36f2c3818da13c4136d70a0fd8153acf8daef4";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/kjellmf/svg2tikz;
|
||||
description = "An SVG to TikZ converter";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ gal_bolle ];
|
||||
};
|
||||
|
||||
}
|
26
pkgs/development/python-modules/svgwrite/default.nix
Normal file
26
pkgs/development/python-modules/svgwrite/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, pyparsing
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "svgwrite";
|
||||
version = "1.1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1f018813072aa4d7e95e58f133acb3f68fa7de0a0d89ec9402cc38406a0ec5b8";
|
||||
};
|
||||
|
||||
buildInputs = [ setuptools ];
|
||||
propagatedBuildInputs = [ pyparsing ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Python library to create SVG drawings";
|
||||
homepage = https://bitbucket.org/mozman/svgwrite;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
34
pkgs/development/python-modules/tarman/default.nix
Normal file
34
pkgs/development/python-modules/tarman/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, unittest2
|
||||
, nose
|
||||
, mock
|
||||
, libarchive
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.1.3";
|
||||
pname = "tarman";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ri6gj883k042xaxa2d5ymmhbw2bfcxdzhh4bz7700ibxwxxj62h";
|
||||
};
|
||||
|
||||
buildInputs = [ unittest2 nose mock ];
|
||||
propagatedBuildInputs = [ libarchive ];
|
||||
|
||||
# tests are still failing
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/matejc/tarman;
|
||||
description = "Archive manager with curses interface";
|
||||
license = licenses.bsd0;
|
||||
};
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue