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

27 lines
598 B
Nix
Raw Normal View History

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