nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.testresources: 2.0.1 -> 2.0.2

authored by

R. Ryantm and committed by
Weijia Wang
18dc2804 dd082b81

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