nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 beautifulsoup4,
6}:
7
8buildPythonPackage rec {
9 pname = "google";
10 version = "3.0.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-FDUwEi7lEwUJrV6YnwUS98shiy1O3br7rUD9EOjYzL4=";
16 };
17
18 propagatedBuildInputs = [ beautifulsoup4 ];
19
20 # Module has no tests
21 doCheck = false;
22
23 pythonImportsCheck = [ "googlesearch" ];
24
25 meta = {
26 description = "Python bindings to the Google search engine";
27 mainProgram = "google";
28 homepage = "https://pypi.org/project/google/";
29 license = with lib.licenses; [ bsd3 ];
30 maintainers = with lib.maintainers; [ fab ];
31 };
32}