3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pytest-snapshot/default.nix
2021-02-05 11:57:02 +01:00

27 lines
811 B
Nix

{ lib, buildPythonPackage, fetchPypi, packaging, pytest, setuptools-scm }:
buildPythonPackage rec {
pname = "pytest-snapshot";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "77d736073598a6224825eef8b8e0c760812a61410af2180cb070b27eb79f257d";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ packaging pytest ];
# pypi does not contain tests and GitHub archive is not supported because setuptools-scm can't detect the version
doCheck = false;
pythonImportsCheck = [ "pytest_snapshot" ];
meta = with lib; {
description = "A plugin to enable snapshot testing with pytest";
homepage = "https://github.com/joseph-roitman/pytest-snapshot/";
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}