about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyuseragents/default.nix
blob: ffa3a5302ae5ffe491eee537e97a2ca0c105badf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pyuseragents";
  version = "1.0.5";

  src = fetchFromGitHub {
    owner = "Animenosekai";
    repo = "useragents";
    rev = "v${version}";
    sha256 = "D7Qs3vsfkRH2FDkbfakrR+FfWzQFiOCQM7q9AdJavyU=";
  };

  checkInputs = [ pytestCheckHook ];
  pytestFlagsArray = [ "test.py" ];
  pythonImportsCheck = [ "pyuseragents" ];

  meta = with lib; {
    description = "Giving you a random User-Agent Header";
    homepage = "https://github.com/Animenosekai/useragents";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ angustrau ];
  };
}