Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyuseragents / default.nix
blobbeafd4bff271dbed3f0eb0b139730bf154309bae
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 }:
7 buildPythonPackage rec {
8   pname = "pyuseragents";
9   version = "1.0.5";
11   src = fetchFromGitHub {
12     owner = "Animenosekai";
13     repo = "useragents";
14     rev = "v${version}";
15     sha256 = "D7Qs3vsfkRH2FDkbfakrR+FfWzQFiOCQM7q9AdJavyU=";
16   };
18   nativeCheckInputs = [ pytestCheckHook ];
19   pytestFlagsArray = [ "test.py" ];
20   pythonImportsCheck = [ "pyuseragents" ];
22   meta = with lib; {
23     description = "Giving you a random User-Agent Header";
24     homepage = "https://github.com/Animenosekai/useragents";
25     license = with licenses; [ mit ];
26     maintainers = with maintainers; [ emilytrau ];
27   };