mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
46 lines
847 B
Nix
46 lines
847 B
Nix
{ 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 ];
|
|
};
|
|
}
|