lol

Merge pull request #205241 from dotlambda/exceptiongroup-test

authored by

Sandro and committed by
GitHub
1f4a528d 5068daae

+14 -10
+14 -10
pkgs/development/python-modules/exceptiongroup/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , fetchPypi 4 - , flit-core 3 + , fetchFromGitHub 4 + , flit-scm 5 5 , pytestCheckHook 6 6 , pythonOlder 7 7 }: ··· 9 9 buildPythonPackage rec { 10 10 pname = "exceptiongroup"; 11 11 version = "1.0.4"; 12 - format = "flit"; 12 + format = "pyproject"; 13 13 14 14 disabled = pythonOlder "3.7"; 15 15 16 - src = fetchPypi { 17 - inherit pname version; 18 - hash = "sha256-vRSWe3nNm9tU2XMjIW+P31M+J435N6oqkAiefW4G5ew="; 16 + src = fetchFromGitHub { 17 + owner = "agronholm"; 18 + repo = "exceptiongroup"; 19 + rev = version; 20 + hash = "sha256-csyDWVvcsAMzgomb0xq0NbVP7qYQpDv9obBGANlwiVI="; 19 21 }; 20 22 21 23 nativeBuildInputs = [ 22 - flit-core 24 + flit-scm 23 25 ]; 24 26 25 - # Tests are only in the source available but tagged releases 26 - # are incomplete as files are generated during the release process 27 - doCheck = false; 27 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 28 + 29 + checkInputs = [ 30 + pytestCheckHook 31 + ]; 28 32 29 33 pythonImportsCheck = [ 30 34 "exceptiongroup"