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.
34 lines
720 B
Nix
34 lines
720 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, fastdiff
|
|
, six
|
|
, termcolor
|
|
, pytestCheckHook
|
|
, pytest-cov
|
|
, django
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "snapshottest";
|
|
version = "0.6.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0g35ggqw4jd9zmazw55kj6gfjdghv49qx4jw5q231qyqj8fzijmv";
|
|
};
|
|
|
|
propagatedBuildInputs = [ fastdiff six termcolor ];
|
|
|
|
nativeCheckInputs = [ django pytestCheckHook pytest-cov ];
|
|
|
|
pythonImportsCheck = [ "snapshottest" ];
|
|
|
|
meta = with lib; {
|
|
description = "Snapshot testing for pytest, unittest, Django, and Nose";
|
|
homepage = "https://github.com/syrusakbary/snapshottest";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|