depot/third_party/nixpkgs/pkgs/development/python-modules/furl/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

51 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, flake8
, orderedmultidict
, pytestCheckHook
, six
}:
buildPythonPackage rec {
pname = "furl";
version = "2.1.0";
src = fetchPypi {
inherit pname version;
sha256 = "08dnw3bs1mk0f1ccn466a5a7fi1ivwrp0jspav9arqpf3wd27q60";
};
patches = [
(fetchpatch {
name = "tests_overcome_bpo42967.patch";
url = "https://github.com/gruns/furl/files/6030371/tests_overcome_bpo42967.patch.txt";
sha256 = "1l0lxmcp9x73kxy0ky2bh7zxa4n1cf1qxyyax97n90d1s3dc7k2q";
})
];
propagatedBuildInputs = [
orderedmultidict
six
];
checkInputs = [
flake8
pytestCheckHook
];
disabledTests = [
# see https://github.com/gruns/furl/issues/121
"join"
];
pythonImportsCheck = [ "furl" ];
meta = with lib; {
description = "Python library that makes parsing and manipulating URLs easy";
homepage = "https://github.com/gruns/furl";
license = licenses.unlicense;
maintainers = with maintainers; [ vanzef ];
};
}