about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pysolr/default.nix
blob: 2a4e57154cea1d1049e4bf4ee4a1fc3364483c57 (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
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, requests, mock }:

buildPythonPackage rec {
  pname = "pysolr";
  version = "3.9.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f";
  };

  nativeBuildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [ requests ];

  nativeCheckInputs = [ mock ];

  doCheck = false; # requires network access

  meta = with lib; {
    description = "Lightweight Python wrapper for Apache Solr";
    homepage = "https://github.com/toastdriven/pysolr/";
    license = licenses.bsd3;
  };
}