mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Merge pull request #47268 from Ma27/fix-py3exiv2
python3Packages.py3exiv2: fix build
This commit is contained in:
commit
db05dd8b6d
@ -1,4 +1,4 @@
|
|||||||
{ buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx }:
|
{ buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx, substituteAll, python }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "py3exiv2";
|
pname = "py3exiv2";
|
||||||
@ -16,7 +16,12 @@ buildPythonPackage rec {
|
|||||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
||||||
|
|
||||||
# fix broken libboost_python3 detection
|
# fix broken libboost_python3 detection
|
||||||
patches = [ ./setup.patch ];
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./setup.patch;
|
||||||
|
version = "3${stdenv.lib.versions.minor python.version}";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://launchpad.net/py3exiv2";
|
homepage = "https://launchpad.net/py3exiv2";
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
return l.replace('libboost', 'boost')
|
return l.replace('libboost', 'boost')
|
||||||
|
|
||||||
-libboost = get_libboost_name()
|
-libboost = get_libboost_name()
|
||||||
+libboost = 'boost_python3'
|
+libboost = 'boost_python@version@'
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='py3exiv2',
|
name='py3exiv2',
|
||||||
|
Loading…
Reference in New Issue
Block a user