1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 gitUpdater, 7 flit-core, 8 pytest, 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-unmagic"; 13 version = "1.0.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "dimagi"; 18 repo = "pytest-unmagic"; 19 tag = "v${version}"; 20 hash = "sha256-XHeQuMCYHtrNF5+7e/eMzcvYukM+AobHCMRdzL+7KpU="; 21 }; 22 23 build-system = [ 24 flit-core 25 ]; 26 27 dependencies = [ pytest ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "unmagic" ]; 32 33 passthru.updateScript = gitUpdater { rev-prefix = "v"; }; 34 35 meta = { 36 description = "Pytest fixtures with conventional import semantics"; 37 homepage = "https://github.com/dimagi/pytest-unmagic"; 38 license = lib.licenses.bsd3; 39 platforms = lib.platforms.unix; 40 maintainers = with lib.maintainers; [ jopejoe1 ]; 41 }; 42}