linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / furl / default.nix
blobda52bfb8fbcdeca98ecae08b67803fea03c36b59
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch
5 , flake8
6 , orderedmultidict
7 , pytestCheckHook
8 , six
9 }:
11 buildPythonPackage rec {
12   pname = "furl";
13   version = "2.1.0";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
18   };
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   ];
28   propagatedBuildInputs = [
29     orderedmultidict
30     six
31   ];
33   checkInputs = [
34     flake8
35     pytestCheckHook
36   ];
38   disabledTests = [
39      # see https://github.com/gruns/furl/issues/121
40     "join"
41   ];
43   pythonImportsCheck = [ "furl" ];
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   };