mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
46 lines
866 B
Nix
46 lines
866 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, publicsuffix2
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "urlpy";
|
|
version = "0.5.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nexB";
|
|
repo = "urlpy";
|
|
rev = "v${version}";
|
|
sha256 = "962jLyx+/GS8wrDPzG2ONnHvtUG5Pqe6l1Z5ml63Cmg=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
|
|
propagatedBuildInputs = [
|
|
publicsuffix2
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 = [ ];
|
|
};
|
|
}
|