1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pbr, 7 fixtures, 8 testtools, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "testresources"; 14 version = "2.0.2"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "testing-cabal"; 19 repo = "testresources"; 20 tag = version; 21 hash = "sha256-cdZObOgBOUxYg4IGUUMb6arlpb6NTU7w+EW700LKH4Y="; 22 }; 23 24 build-system = [ 25 setuptools 26 pbr 27 ]; 28 29 dependencies = [ 30 pbr 31 ]; 32 33 nativeCheckInputs = [ 34 fixtures 35 testtools 36 pytestCheckHook 37 ]; 38 39 env.PBR_VERSION = version; 40 41 meta = { 42 description = "Pyunit extension for managing expensive test resources"; 43 homepage = "https://launchpad.net/testresources"; 44 license = with lib.licenses; [ 45 asl20 # or 46 bsd3 47 ]; 48 maintainers = with lib.maintainers; [ nickcao ]; 49 }; 50}