2018-06-22 10:16:38 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools_scm, requests, mock }:
|
2018-06-22 10:15:32 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysolr";
|
2020-05-09 11:20:27 +01:00
|
|
|
version = "3.9.0";
|
2018-06-22 10:15:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:20:27 +01:00
|
|
|
sha256 = "1rj5jmscvxjwcmlfi6hmkj44l4x6n3ln5p7d8d18j566hzmmzw3f";
|
2018-06-22 10:15:32 +01:00
|
|
|
};
|
|
|
|
|
2018-06-22 10:16:38 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
2018-06-22 10:15:32 +01:00
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
2018-06-22 10:16:38 +01:00
|
|
|
checkInputs = [ mock ];
|
|
|
|
|
|
|
|
doCheck = false; # requires network access
|
2018-06-22 10:15:32 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight Python wrapper for Apache Solr";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = "https://github.com/toastdriven/pysolr/";
|
2018-06-22 10:15:32 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|