nixpkgs/pkgs/development/python-modules/pysolr/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

27 lines
604 B
Nix

{ lib, buildPythonPackage, fetchPypi, setuptools-scm, requests, mock }:
buildPythonPackage rec {
pname = "pysolr";
version = "3.9.0";
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;
};
}