Files
nixpkgs/pkgs/development/python-modules/ua-parser/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

44 lines
876 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pyyaml,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ua-parser";
version = "0.18.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "ua-parser";
repo = "uap-python";
rev = version;
fetchSubmodules = true;
hash = "sha256-GiuGPnyYL0HQ/J2OpDTD1/panZCuzKtD3mKW5op5lXA=";
};
patches = [ ./dont-fetch-submodule.patch ];
nativeBuildInputs = [ pyyaml ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
# import from $out
rm ua_parser/__init__.py
'';
pythonImportsCheck = [ "ua_parser" ];
meta = with lib; {
description = "Python implementation of the UA Parser";
homepage = "https://github.com/ua-parser/uap-python";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ dotlambda ];
};
}