nixpkgs/pkgs/development/python-modules/backcall/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

29 lines
514 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "backcall";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e";
};
nativeCheckInputs = [ pytest ];
checkPhase = ''
py.test
'';
meta = {
description = "Specifications for callback functions passed in to an API";
homepage = "https://github.com/takluyver/backcall";
license = lib.licenses.bsd3;
};
}