nixpkgs/pkgs/development/python-modules/pysolr/default.nix

27 lines
610 B
Nix
Raw Normal View History

2018-06-22 11:16:38 +02:00
{ lib, buildPythonPackage, fetchPypi, setuptools_scm, requests, mock }:
2018-06-22 11:15:32 +02:00
buildPythonPackage rec {
pname = "pysolr";
2018-11-04 11:35:13 +01:00
version = "3.8.1";
2018-06-22 11:15:32 +02:00
src = fetchPypi {
inherit pname version;
2018-11-04 11:35:13 +01:00
sha256 = "88ecb176627db6bcf9aeb94a3570bfa0363cb68be4b2a6d89a957d4a87c0a81b";
2018-06-22 11:15:32 +02:00
};
2018-06-22 11:16:38 +02:00
nativeBuildInputs = [ setuptools_scm ];
2018-06-22 11:15:32 +02:00
propagatedBuildInputs = [ requests ];
2018-06-22 11:16:38 +02:00
checkInputs = [ mock ];
doCheck = false; # requires network access
2018-06-22 11:15:32 +02:00
meta = with lib; {
description = "Lightweight Python wrapper for Apache Solr";
homepage = "https://github.com/toastdriven/pysolr/";
2018-06-22 11:15:32 +02:00
license = licenses.bsd3;
};
}