depot/third_party/nixpkgs/pkgs/development/python-modules/urlpy/default.nix
Default email 2189cff663 Project import generated by Copybara.
GitOrigin-RevId: 1fe6ed37fd9beb92afe90671c0c2a662a03463dd
2021-04-24 22:57:28 -05:00

44 lines
864 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, publicsuffix2
, pytestCheckHook
, pythonAtLeast
}:
buildPythonPackage rec {
pname = "urlpy";
version = "0.5.0";
src = fetchFromGitHub {
owner = "nexB";
repo = "urlpy";
rev = "v${version}";
sha256 = "962jLyx+/GS8wrDPzG2ONnHvtUG5Pqe6l1Z5ml63Cmg=";
};
dontConfigure = true;
propagatedBuildInputs = [
publicsuffix2
];
checkInputs = [
pytestCheckHook
];
disabledTests = lib.optionals (pythonAtLeast "3.9") [
# Fails with "AssertionError: assert 'unknown' == ''"
"test_unknown_protocol"
];
pythonImportsCheck = [
"urlpy"
];
meta = with lib; {
description = "Simple URL parsing, canonicalization and equivalence";
homepage = "https://github.com/nexB/urlpy";
license = licenses.mit;
maintainers = teams.determinatesystems.members;
};
}