nixpkgs/pkgs/development/python-modules/furl/default.nix

52 lines
1.0 KiB
Nix
Raw Normal View History

2021-03-07 15:48:10 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, flake8
, orderedmultidict
, pytestCheckHook
, six
}:
2019-08-12 14:05:32 +01:00
buildPythonPackage rec {
pname = "furl";
2020-02-19 12:12:43 +00:00
version = "2.1.0";
2019-08-12 14:05:32 +01:00
src = fetchPypi {
inherit pname version;
2020-02-19 12:12:43 +00:00
sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
2019-08-12 14:05:32 +01:00
};
2021-03-07 15:48:10 +00:00
patches = [
(fetchpatch {
name = "tests_overcome_bpo42967.patch";
url = "https://github.com/gruns/furl/files/6030371/tests_overcome_bpo42967.patch.txt";
sha256 = "1l0lxmcp9x73kxy0ky2bh7zxa4n1cf1qxyyax97n90d1s3dc7k2q";
})
];
2019-08-12 14:05:32 +01:00
2021-03-07 15:48:10 +00:00
propagatedBuildInputs = [
orderedmultidict
six
];
2019-08-12 14:05:32 +01:00
2021-03-07 15:48:10 +00:00
checkInputs = [
flake8
pytestCheckHook
];
disabledTests = [
# see https://github.com/gruns/furl/issues/121
"join"
];
pythonImportsCheck = [ "furl" ];
2020-02-19 12:12:43 +00:00
meta = with lib; {
2021-03-07 15:48:10 +00:00
description = "Python library that makes parsing and manipulating URLs easy";
2020-02-19 12:12:43 +00:00
homepage = "https://github.com/gruns/furl";
license = licenses.unlicense;
2019-08-12 14:05:32 +01:00
maintainers = with maintainers; [ vanzef ];
};
}