1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 idna, 6 pytest-cov-stub, 7 pytest-socket, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "url-normalize"; 14 version = "2.2.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "niksite"; 19 repo = "url-normalize"; 20 tag = "v${version}"; 21 hash = "sha256-ZFY1KMEHvteMFVM3QcYjCiTz3dLxRWyv/dZQMzVxGvo="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ idna ]; 27 28 nativeCheckInputs = [ 29 pytest-cov-stub 30 pytest-socket 31 pytestCheckHook 32 ]; 33 34 pythonImportsCheck = [ "url_normalize" ]; 35 36 meta = { 37 changelog = "https://github.com/niksite/url-normalize/blob/${src.tag}/CHANGELOG.md"; 38 description = "URL normalization for Python"; 39 homepage = "https://github.com/niksite/url-normalize"; 40 license = lib.licenses.mit; 41 maintainers = with lib.maintainers; [ fab ]; 42 }; 43}