git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.url-normalize: init at 1.4.3
commit2837ce664fd0a6e13b33599fb0a61c0652d3d8ff authorFabian Affolter <mail@fabian-affolter.ch> dateTue 19 Jan 2021, 19:07 (6 years ago) parentdd3238c
2 files changed+47
pkgs/development/python-modules/url-normalize/default.nix+45 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/top-level/python-packages.nix+2
@@ -7924,6 +7924,8 @@ in {
79247924
79257925 uritools = callPackage ../development/python-modules/uritools { };
79267926
7927+ url-normalize = callPackage ../development/python-modules/url-normalize { };
7928+
79277929 urlgrabber = callPackage ../development/python-modules/urlgrabber { };
79287930
79297931 urllib3 = callPackage ../development/python-modules/urllib3 { };