Merge branch 'master' into staging

This commit is contained in:
Vladimír Čunát
2017-11-07 06:41:23 +01:00
33 changed files with 668 additions and 970 deletions

View File

@@ -14,6 +14,8 @@ with pythonPackages;buildPythonPackage rec {
checkInputs = [ pytest ];
checkPhase = ''
# Don't know why this test is failing!
substituteInPlace testing/test_request.py --replace "test_env" "noop_test_env"
py.test
'';

View File

@@ -0,0 +1,22 @@
{ stdenv, buildPythonPackage, python, fetchurl }:
buildPythonPackage rec {
name = "fastimport-${version}";
version = "0.9.6";
src = fetchurl {
url = "mirror://pypi/f/fastimport/${name}.tar.gz";
sha256 = "1aqjsin4rmqm7ln4j0p73fzxifws6c6ikgyhav7r137m2ixsxl43";
};
checkPhase = ''
${python.interpreter} -m unittest discover
'';
meta = with stdenv.lib; {
homepage = https://launchpad.net/python-fastimport;
description = "VCS fastimport/fastexport parser";
maintainers = with maintainers; [ koral ];
license = licenses.gpl2Plus;
};
}

View File

@@ -1,23 +0,0 @@
{ stdenv, buildPythonPackage, fetchurl
, xe }:
buildPythonPackage rec {
url = "http://www.blarg.net/%7Esteveha/pyfeed-0.7.4.tar.gz";
name = stdenv.lib.nameFromURL url ".tar";
src = fetchurl {
inherit url;
sha256 = "1h4msq573m7wm46h3cqlx4rsn99f0l11rhdqgf50lv17j8a8vvy1";
};
propagatedBuildInputs = [ xe ];
# error: invalid command 'test'
doCheck = false;
meta = with stdenv.lib; {
homepage = "http://home.blarg.net/~steveha/pyfeed.html";
description = "Tools for syndication feeds";
};
}

View File

@@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, pkgs
}:
buildPythonPackage rec {
pname = "pylibacl";
version = "0.5.3";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
sha256 = "0c3xw1s5bh6jnsc0wwyxnn6kn6x6rpbmmi05ap1f81fyqlgrzgj0";
};
# ERROR: testExtended (tests.test_acls.AclExtensions)
# IOError: [Errno 0] Error
doCheck = false;
buildInputs = with pkgs; [ acl ];
meta = {
description = "A Python extension module for POSIX ACLs, it can be used to query, list, add, and remove ACLs from files and directories under operating systems that support them";
license = lib.licenses.lgpl21Plus;
};
}

View File

@@ -0,0 +1,27 @@
{ lib
, pkgconfig
, fetchurl
, fuse
, buildPythonPackage
, isPy3k
}:
buildPythonPackage rec {
baseName = "fuse";
version = "0.2.1";
name = "${baseName}-${version}";
disabled = isPy3k;
src = fetchurl {
url = "mirror://sourceforge/fuse/fuse-python-${version}.tar.gz";
sha256 = "06rmp1ap6flh64m81j0n3a357ij2vj9zwcvvw0p31y6hz1id9shi";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ fuse ];
meta = {
description = "Python bindings for FUSE";
license = lib.licenses.lgpl21;
};
}

View File

@@ -0,0 +1,26 @@
{ lib
, pkgs
, fetchPypi
, buildPythonPackage
}:
buildPythonPackage rec {
pname = "pyxattr";
version = "0.6.0";
name = pname + "-" + version;
src = fetchPypi {
inherit pname version;
sha256 = "1a3fqjlgbzq5hmc3yrnxxxl8nyn3rz2kfn17svbsahaq4gj0xl09";
};
# IOError: [Errno 95] Operation not supported (expected)
doCheck = false;
buildInputs = with pkgs; [ attr ];
meta = with lib; {
description = "A Python extension module which gives access to the extended attributes for filesystem objects available in some operating systems";
license = licenses.lgpl21Plus;
};
}