pythonPackages.cffi: 1.9.1 -> 1.10.0

This commit is contained in:
Jörg Thalheim 2017-05-01 17:50:55 +02:00 committed by Frederik Rietdijk
parent a027f103a0
commit d08c717eff
2 changed files with 32 additions and 27 deletions

View File

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, isPyPy, fetchPypi, libffi, pycparser, pytest }:
if isPyPy then null else buildPythonPackage rec {
pname = "cffi";
version = "1.10.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1mffyilq4qycm8gs4wkgb18rnqil8a9blqq77chdlshzxc8jkc5k";
};
propagatedBuildInputs = [ libffi pycparser ];
buildInputs = [ pytest ];
patchPhase = ''
substituteInPlace testing/cffi0/test_ownlib.py --replace "gcc" "cc"
'';
checkPhase = ''
py.test
'';
meta = with lib; {
maintainers = with maintainers; [ domenkozar ];
homepage = https://cffi.readthedocs.org/;
license = with licenses; [ mit ];
description = "Foreign Function Interface for Python calling C code";
};
}

View File

@ -5035,32 +5035,7 @@ in {
bcrypt = callPackage ../development/python-modules/bcrypt.nix { };
cffi = if isPyPy then null else buildPythonPackage rec {
name = "cffi-1.9.1";
src = pkgs.fetchurl {
url = "mirror://pypi/c/cffi/${name}.tar.gz";
sha256 = "563e0bd53fda03c151573217b3a49b3abad8813de9dd0632e10090f6190fdaf8";
};
propagatedBuildInputs = with self; [ pkgs.libffi pycparser ];
buildInputs = with self; [ pytest ];
patchPhase = ''
substituteInPlace testing/cffi0/test_ownlib.py --replace "gcc" "cc"
'';
checkPhase = ''
py.test
'';
meta = {
maintainers = with maintainers; [ domenkozar ];
homepage = https://cffi.readthedocs.org/;
license = with licenses; [ mit ];
description = "Foreign Function Interface for Python calling C code";
};
};
cffi = callPackage ../development/python-modules/cffi { };
pycollada = buildPythonPackage rec {
name = "pycollada-0.4.1";
@ -6959,7 +6934,7 @@ in {
};
ezdxf = callPackage ../development/python-modules/ezdxf {};
facebook-sdk = buildPythonPackage rec {
name = "facebook-sdk-0.4.0";