@@ -1,4 +1,12 @@
1−{ lib, buildPythonPackage, fetchPypi, flake8, six, orderedmultidict, pytest }:
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, fetchpatch
5+, flake8
6+, orderedmultidict
7+, pytestCheckHook
8+, six
9+}:
210
311buildPythonPackage rec {
412 pname = "furl";
@@ -9,17 +17,33 @@ buildPythonPackage rec {
917 sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
1018 };
1119
12− checkInputs = [ flake8 pytest ];
20+ patches = [
21+ (fetchpatch {
22+ name = "tests_overcome_bpo42967.patch";
23+ url = "https://github.com/gruns/furl/files/6030371/tests_overcome_bpo42967.patch.txt";
24+ sha256 = "1l0lxmcp9x73kxy0ky2bh7zxa4n1cf1qxyyax97n90d1s3dc7k2q";
25+ })
26+ ];
1327
14− propagatedBuildInputs = [ six orderedmultidict ];
28+ propagatedBuildInputs = [
29+ orderedmultidict
30+ six
31+ ];
1532
16− # see https://github.com/gruns/furl/issues/121
17− checkPhase = ''
18− pytest -k 'not join'
19− '';
33+ checkInputs = [
34+ flake8
35+ pytestCheckHook
36+ ];
37+
38+ disabledTests = [
39+ # see https://github.com/gruns/furl/issues/121
40+ "join"
41+ ];
42+
43+ pythonImportsCheck = [ "furl" ];
2044
2145 meta = with lib; {
22− description = "furl is a small Python library that makes parsing and manipulating URLs easy";
46+ description = "Python library that makes parsing and manipulating URLs easy";
2347 homepage = "https://github.com/gruns/furl";
2448 license = licenses.unlicense;
2549 maintainers = with maintainers; [ vanzef ];