diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-02-06 00:11:28 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-02-06 01:50:33 +0100 |
commit | 5308a8694e838539b52f7c1e9a36d999f1839c55 (patch) | |
tree | 47016a3176e900e4ed14e2c95fb640c8152b7803 /pkgs/development/python-modules | |
parent | 02f17407449598e36b95dd3add77307fffa294d9 (diff) | |
download | nixlib-5308a8694e838539b52f7c1e9a36d999f1839c55.tar nixlib-5308a8694e838539b52f7c1e9a36d999f1839c55.tar.gz nixlib-5308a8694e838539b52f7c1e9a36d999f1839c55.tar.bz2 nixlib-5308a8694e838539b52f7c1e9a36d999f1839c55.tar.lz nixlib-5308a8694e838539b52f7c1e9a36d999f1839c55.tar.xz nixlib-5308a8694e838539b52f7c1e9a36d999f1839c55.tar.zst nixlib-5308a8694e838539b52f7c1e9a36d999f1839c55.zip |
python3.pkgs.pygit2: 0.27.2 → 1.0.3
Removes Python 2 support. https://github.com/libgit2/pygit2/blob/v1.0.3/CHANGELOG.rst
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/pygit2/default.nix | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/pygit2/default.nix b/pkgs/development/python-modules/pygit2/default.nix index 313a3e5ab189..cd2994a4dc0f 100644 --- a/pkgs/development/python-modules/pygit2/default.nix +++ b/pkgs/development/python-modules/pygit2/default.nix @@ -1,25 +1,21 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2, six, cffi }: +{ stdenv, lib, buildPythonPackage, fetchPypi, isPyPy, isPy3k, libgit2, pytestCheckHook, cffi, cacert }: buildPythonPackage rec { pname = "pygit2"; - version = "0.27.2"; + version = "1.0.3"; src = fetchPypi { inherit pname version; - sha256 = "0d9bgxd6ch5jxz0j5cmx7c4kw933g8pgm2zxf3id1a6w9g2r7hpw"; + sha256 = "1ql7hkcxrh8yszglrg7d3y0ivh1l56xdc3j34j2fjy4qq06ifv6y"; }; preConfigure = lib.optionalString stdenv.isDarwin '' export DYLD_LIBRARY_PATH="${libgit2}/lib" ''; - patches = [ (fetchpatch { - name = "dont-require-old-pycparser"; # https://github.com/libgit2/pygit2/issues/819 - url = https://github.com/libgit2/pygit2/commit/1eaba181577de206d3d43ec7886d0353fc0c9f2a.patch; - sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f"; - }) ]; + propagatedBuildInputs = [ libgit2 ] ++ lib.optional (!isPyPy) cffi; - propagatedBuildInputs = [ libgit2 six ] ++ lib.optional (!isPyPy) cffi; + checkInputs = [ pytestCheckHook ]; preCheck = '' # disable tests that require networking @@ -28,6 +24,20 @@ buildPythonPackage rec { rm test/test_submodule.py ''; + # Tests require certificates + # https://github.com/NixOS/nixpkgs/pull/72544#issuecomment-582674047 + SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; + + # setup.py check is broken + # https://github.com/libgit2/pygit2/issues/868 + dontUseSetuptoolsCheck = true; + + # TODO: Test collection is failing + # https://github.com/NixOS/nixpkgs/pull/72544#issuecomment-582681068 + doCheck = false; + + disabled = !isPy3k; + meta = with lib; { description = "A set of Python bindings to the libgit2 shared library"; homepage = https://pypi.python.org/pypi/pygit2; |