python3Packages.pytaglib: 1.4.5 -> 1.4.6
This commit is contained in:
parent
3d67a797b7
commit
57e7d12c86
1 changed files with 15 additions and 36 deletions
|
@ -3,56 +3,35 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, taglib
|
, taglib
|
||||||
, cython
|
, cython
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, glibcLocales
|
|
||||||
, fetchpatch
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pytaglib";
|
pname = "pytaglib";
|
||||||
version = "1.4.5";
|
version = "1.4.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "supermihi";
|
owner = "supermihi";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1gvvadlgk8ny8bg76gwvvfcwp1nfgrjphi60h5f9ha7h5ff1g2wb";
|
sha256 = "sha256-UAWXR1MCxEB48n7oQE+L545F+emlU3HErzLX6YTRteg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
buildInputs = [
|
||||||
# fix tests on python 2.7
|
cython
|
||||||
(fetchpatch {
|
taglib
|
||||||
url = "https://github.com/supermihi/pytaglib/commit/0c4ae750fcd5b18d2553975c7e3e183e9dca5bf1.patch";
|
|
||||||
sha256 = "1kv3c68vimx5dc8aacvzphiaq916avmprxddi38wji8p2ql6vngj";
|
|
||||||
})
|
|
||||||
|
|
||||||
# properly install pyprinttags
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/supermihi/pytaglib/commit/ba7a1406ddf35ddc41ed57f1c8d1f2bc2ed2c93a.patch";
|
|
||||||
sha256 = "0pi0dcq7db5fd3jnbwnfsfsgxvlhnm07z5yhpp93shk0s7ci2bwp";
|
|
||||||
})
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/supermihi/pytaglib/commit/28772f6f94d37f05728071381a0fa04c6a14783a.patch";
|
|
||||||
sha256 = "0h259vzj1l0gpibdf322yclyd10x5rh1anzhsjj2ghm6rj6q0r0m";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
checkInputs = [
|
||||||
substituteInPlace setup.py --replace "'pytest-runner', " ""
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
|
|
||||||
buildInputs = [ taglib cython ];
|
pythonImportsCheck = [ "taglib" ];
|
||||||
|
|
||||||
checkInputs = [ pytest glibcLocales ];
|
meta = with lib; {
|
||||||
|
description = "Python bindings for the Taglib audio metadata library";
|
||||||
checkPhase = ''
|
|
||||||
LC_ALL=en_US.utf-8 pytest .
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "https://github.com/supermihi/pytaglib";
|
homepage = "https://github.com/supermihi/pytaglib";
|
||||||
description = "Python 2.x/3.x bindings for the Taglib audio metadata library";
|
license = licenses.gpl3Plus;
|
||||||
license = lib.licenses.gpl3;
|
maintainers = with maintainers; [ mrkkrp ];
|
||||||
maintainers = [ lib.maintainers.mrkkrp ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue