python3Packages.voluptuous: 0.13.0 -> 0.13.1
commitf58df705e7c65b58e2c3aa0b6309cf7418bc169c
authorFabian Affolter <mail@fabian-affolter.ch>
dateSun 10 Apr 2022, 21:21 (5 years ago)
parent8006dee
pkgs/development/python-modules/voluptuous/default.nix+15−11
@@ -1,27 +1,31 @@
11{ lib
22, buildPythonPackage
3−, fetchPypi
4−, nose
3+, fetchFromGitHub
4+, pytestCheckHook
55}:
66
77buildPythonPackage rec {
88 pname = "voluptuous";
9− version = "0.13.0";
9+ version = "0.13.1";
1010
11− src = fetchPypi {
12− inherit pname version;
13− sha256 = "sha256-yuakUmtDS2QoFrNKAOEYbVpfXgyUirlNKpGOAeWHQGY=";
11+ src = fetchFromGitHub {
12+ owner = "alecthomas";
13+ repo = pname;
14+ rev = version;
15+ hash = "sha256-cz3Bd+/yPh+VOHxzi/W+gbDh/H5Nl/n4jvxDOirmAVk=";
1416 };
1517
1618 checkInputs = [
17− nose
19+ pytestCheckHook
1820 ];
1921
20− checkPhase = ''
21− nosetests
22− '';
22+ pythonImportsCheck = [
23+ "voluptuous"
24+ ];
2325
24− pythonImportsCheck = [ "voluptuous" ];
26+ pytestFlagsArray = [
27+ "voluptuous/tests/"
28+ ];
2529
2630 meta = with lib; {
2731 description = "Python data validation library";