git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #109994 from fabaff/url-normalize
commit6b0fe63bbcee4cf7dedbc5f33f2c0bc841f1873a authorSandro <sandro.jaeckel@gmail.com> dateTue 19 Jan 2021, 20:38 (6 years ago) parentabf9d69ef4e9a2
3 files changed+49−2
pkgs/development/python-modules/url-normalize/default.nix+45 pkgs/servers/home-assistant/component-packages.nix+2−2 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/url-normalize/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, poetry
5+, pytest-cov
6+, pytest-flakes
7+, pytest-mock
8+, pytest-socket
9+, pytestCheckHook
10+, six
11+}:
12+
13+buildPythonPackage rec {
14+ pname = "url-normalize";
15+ version = "1.4.3";
16+ format = "pyproject";
17+
18+ src = fetchFromGitHub {
19+ owner = "niksite";
20+ repo = pname;
21+ rev = version;
22+ sha256 = "09nac5nh94x0n4bfazjfxk96b20mfsx6r1fnvqv85gkzs0rwqkaq";
23+ };
24+
25+ nativeBuildInputs = [ poetry ];
26+
27+ propagatedBuildInputs = [ six ];
28+
29+ checkInputs = [
30+ pytest-cov
31+ pytest-flakes
32+ pytest-mock
33+ pytest-socket
34+ pytestCheckHook
35+ ];
36+
37+ pythonImportsCheck = [ "url_normalize" ];
38+
39+ meta = with lib; {
40+ description = "URL normalization for Python";
41+ homepage = "https://github.com/niksite/url-normalize";
42+ license = with licenses; [ mit ];
43+ maintainers = with maintainers; [ fab ];
44+ };
45+}
pkgs/servers/home-assistant/component-packages.nix+2−2
@@ -361,7 +361,7 @@
361361 "html5" = ps: with ps; [ aiohttp-cors pywebpush ];
362362 "http" = ps: with ps; [ aiohttp-cors ];
363363 "htu21d" = ps: with ps; [ smbus-cffi ]; # missing inputs: i2csense
364− "huawei_lte" = ps: with ps; [ getmac stringcase ]; # missing inputs: huawei-lte-api url-normalize
364+ "huawei_lte" = ps: with ps; [ getmac stringcase url-normalize ]; # missing inputs: huawei-lte-api
365365 "huawei_router" = ps: with ps; [ ];
366366 "hue" = ps: with ps; [ aiohue ];
367367 "humidifier" = ps: with ps; [ ];
@@ -801,7 +801,7 @@
801801 "switchbot" = ps: with ps; [ ]; # missing inputs: PySwitchbot
802802 "switcher_kis" = ps: with ps; [ aioswitcher ];
803803 "switchmate" = ps: with ps; [ ]; # missing inputs: pySwitchmate
804− "syncthru" = ps: with ps; [ ]; # missing inputs: pysyncthru url-normalize
804+ "syncthru" = ps: with ps; [ url-normalize ]; # missing inputs: pysyncthru
805805 "synology" = ps: with ps; [ ]; # missing inputs: py-synology
806806 "synology_chat" = ps: with ps; [ ];
807807 "synology_dsm" = ps: with ps; [ ]; # missing inputs: synologydsm-api
pkgs/top-level/python-packages.nix+2
@@ -7932,6 +7932,8 @@ in {
79327932
79337933 uritools = callPackage ../development/python-modules/uritools { };
79347934
7935+ url-normalize = callPackage ../development/python-modules/url-normalize { };
7936+
79357937 urlgrabber = callPackage ../development/python-modules/urlgrabber { };
79367938
79377939 urllib3 = callPackage ../development/python-modules/urllib3 { };