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";
|
2018-06-22 10:16:38 +01:00
|
|
|
version = "3.7.0";
|
2018-06-22 10:15:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-22 10:16:38 +01:00
|
|
|
sha256 = "b2c5f920d1cabaff8b465447ee152c6985f120b5895f091cf7bf15ff71ade1dc";
|
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";
|
|
|
|
homepage = "http://github.com/toastdriven/pysolr/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|