python3.pkgs.urlpy: init at 0.5

This commit is contained in:
Cole Helbling 2021-04-19 21:12:03 -07:00
parent 3eda68a476
commit 5b7ba25dc9
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ 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;
};
}

View file

@ -8862,6 +8862,8 @@ in {
else
callPackage ../development/python-modules/urllib3/2.nix { };
urlpy = callPackage ../development/python-modules/urlpy { };
urwid = callPackage ../development/python-modules/urwid { };
urwidtrees = callPackage ../development/python-modules/urwidtrees { };