mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
python3.pkgs.urlpy: init at 0.5
This commit is contained in:
parent
3eda68a476
commit
5b7ba25dc9
2 changed files with 46 additions and 0 deletions
44
pkgs/development/python-modules/urlpy/default.nix
Normal file
44
pkgs/development/python-modules/urlpy/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue