Merge pull request #109994 from fabaff/url-normalize
This commit is contained in:
commit
6b0fe63bbc
45
pkgs/development/python-modules/url-normalize/default.nix
Normal file
45
pkgs/development/python-modules/url-normalize/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, poetry
|
||||||
|
, pytest-cov
|
||||||
|
, pytest-flakes
|
||||||
|
, pytest-mock
|
||||||
|
, pytest-socket
|
||||||
|
, pytestCheckHook
|
||||||
|
, six
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "url-normalize";
|
||||||
|
version = "1.4.3";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "niksite";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "09nac5nh94x0n4bfazjfxk96b20mfsx6r1fnvqv85gkzs0rwqkaq";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ poetry ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ six ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-cov
|
||||||
|
pytest-flakes
|
||||||
|
pytest-mock
|
||||||
|
pytest-socket
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "url_normalize" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "URL normalization for Python";
|
||||||
|
homepage = "https://github.com/niksite/url-normalize";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -361,7 +361,7 @@
|
|||||||
"html5" = ps: with ps; [ aiohttp-cors pywebpush ];
|
"html5" = ps: with ps; [ aiohttp-cors pywebpush ];
|
||||||
"http" = ps: with ps; [ aiohttp-cors ];
|
"http" = ps: with ps; [ aiohttp-cors ];
|
||||||
"htu21d" = ps: with ps; [ smbus-cffi ]; # missing inputs: i2csense
|
"htu21d" = ps: with ps; [ smbus-cffi ]; # missing inputs: i2csense
|
||||||
"huawei_lte" = ps: with ps; [ getmac stringcase ]; # missing inputs: huawei-lte-api url-normalize
|
"huawei_lte" = ps: with ps; [ getmac stringcase url-normalize ]; # missing inputs: huawei-lte-api
|
||||||
"huawei_router" = ps: with ps; [ ];
|
"huawei_router" = ps: with ps; [ ];
|
||||||
"hue" = ps: with ps; [ aiohue ];
|
"hue" = ps: with ps; [ aiohue ];
|
||||||
"humidifier" = ps: with ps; [ ];
|
"humidifier" = ps: with ps; [ ];
|
||||||
@ -801,7 +801,7 @@
|
|||||||
"switchbot" = ps: with ps; [ ]; # missing inputs: PySwitchbot
|
"switchbot" = ps: with ps; [ ]; # missing inputs: PySwitchbot
|
||||||
"switcher_kis" = ps: with ps; [ aioswitcher ];
|
"switcher_kis" = ps: with ps; [ aioswitcher ];
|
||||||
"switchmate" = ps: with ps; [ ]; # missing inputs: pySwitchmate
|
"switchmate" = ps: with ps; [ ]; # missing inputs: pySwitchmate
|
||||||
"syncthru" = ps: with ps; [ ]; # missing inputs: pysyncthru url-normalize
|
"syncthru" = ps: with ps; [ url-normalize ]; # missing inputs: pysyncthru
|
||||||
"synology" = ps: with ps; [ ]; # missing inputs: py-synology
|
"synology" = ps: with ps; [ ]; # missing inputs: py-synology
|
||||||
"synology_chat" = ps: with ps; [ ];
|
"synology_chat" = ps: with ps; [ ];
|
||||||
"synology_dsm" = ps: with ps; [ ]; # missing inputs: synologydsm-api
|
"synology_dsm" = ps: with ps; [ ]; # missing inputs: synologydsm-api
|
||||||
|
@ -7932,6 +7932,8 @@ in {
|
|||||||
|
|
||||||
uritools = callPackage ../development/python-modules/uritools { };
|
uritools = callPackage ../development/python-modules/uritools { };
|
||||||
|
|
||||||
|
url-normalize = callPackage ../development/python-modules/url-normalize { };
|
||||||
|
|
||||||
urlgrabber = callPackage ../development/python-modules/urlgrabber { };
|
urlgrabber = callPackage ../development/python-modules/urlgrabber { };
|
||||||
|
|
||||||
urllib3 = callPackage ../development/python-modules/urllib3 { };
|
urllib3 = callPackage ../development/python-modules/urllib3 { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user