Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / urlpy / default.nix
blobf03b8b564508d945bf8fa3f5150206672b855125
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , publicsuffix2
5 , pytestCheckHook
6 , pythonAtLeast
7 }:
8 buildPythonPackage rec {
9   pname = "urlpy";
10   version = "0.5.0";
12   src = fetchFromGitHub {
13     owner = "nexB";
14     repo = "urlpy";
15     rev = "v${version}";
16     sha256 = "962jLyx+/GS8wrDPzG2ONnHvtUG5Pqe6l1Z5ml63Cmg=";
17   };
19   dontConfigure = true;
21   propagatedBuildInputs = [
22     publicsuffix2
23   ];
25   nativeCheckInputs = [
26     pytestCheckHook
27   ];
29   disabledTests = lib.optionals (pythonAtLeast "3.9") [
30     # Fails with "AssertionError: assert 'unknown' == ''"
31     "test_unknown_protocol"
32   ];
34   pythonImportsCheck = [
35     "urlpy"
36   ];
38   meta = with lib; {
39     description = "Simple URL parsing, canonicalization and equivalence";
40     homepage = "https://github.com/nexB/urlpy";
41     license = licenses.mit;
42     maintainers = [ ];
43   };