1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5, flake8
6, orderedmultidict
7, pytestCheckHook
8, six
9}:
10
11buildPythonPackage rec {
12 pname = "furl";
13 version = "2.1.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
18 };
19
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 ];
27
28 propagatedBuildInputs = [
29 orderedmultidict
30 six
31 ];
32
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" ];
44
45 meta = with lib; {
46 description = "Python library that makes parsing and manipulating URLs easy";
47 homepage = "https://github.com/gruns/furl";
48 license = licenses.unlicense;
49 maintainers = with maintainers; [ vanzef ];
50 };
51}