Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, packaging 5, pytest 6, setuptools-scm 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-snapshot"; 13 version = "0.9.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.5"; 17 18 src = fetchFromGitHub { 19 owner = "joseph-roitman"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-0PZu9wL29iEppLxxbl4D0E4WfOHe61KUUld003cRBRU="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 nativeBuildInputs = [ 28 setuptools-scm 29 ]; 30 31 buildInputs = [ 32 pytest 33 ]; 34 35 propagatedBuildInputs = [ 36 packaging 37 ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ 44 "pytest_snapshot" 45 ]; 46 47 meta = with lib; { 48 description = "A plugin to enable snapshot testing with pytest"; 49 homepage = "https://github.com/joseph-roitman/pytest-snapshot/"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ SuperSandro2000 ]; 52 }; 53}