python3Packages.furl: fix build

This commit is contained in:
Fabian Affolter 2021-03-07 16:48:10 +01:00 committed by Jonathan Ringer
parent 8e25152e68
commit 5c8b025584

View File

@ -1,4 +1,12 @@
{ lib, buildPythonPackage, fetchPypi, flake8, six, orderedmultidict, pytest }: { lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, flake8
, orderedmultidict
, pytestCheckHook
, six
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "furl"; pname = "furl";
@ -9,17 +17,33 @@ buildPythonPackage rec {
sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60"; sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
}; };
checkInputs = [ flake8 pytest ]; patches = [
(fetchpatch {
name = "tests_overcome_bpo42967.patch";
url = "https://github.com/gruns/furl/files/6030371/tests_overcome_bpo42967.patch.txt";
sha256 = "1l0lxmcp9x73kxy0ky2bh7zxa4n1cf1qxyyax97n90d1s3dc7k2q";
})
];
propagatedBuildInputs = [ six orderedmultidict ]; propagatedBuildInputs = [
orderedmultidict
six
];
checkInputs = [
flake8
pytestCheckHook
];
disabledTests = [
# see https://github.com/gruns/furl/issues/121 # see https://github.com/gruns/furl/issues/121
checkPhase = '' "join"
pytest -k 'not join' ];
'';
pythonImportsCheck = [ "furl" ];
meta = with lib; { meta = with lib; {
description = "furl is a small Python library that makes parsing and manipulating URLs easy"; description = "Python library that makes parsing and manipulating URLs easy";
homepage = "https://github.com/gruns/furl"; homepage = "https://github.com/gruns/furl";
license = licenses.unlicense; license = licenses.unlicense;
maintainers = with maintainers; [ vanzef ]; maintainers = with maintainers; [ vanzef ];