python311Packages.pyosf: remove pytest-runner

+23 -10
+23 -10
pkgs/development/python-modules/pyosf/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 - , isPy27 5 - , pytest-runner 6 , requests 7 }: 8 9 buildPythonPackage rec { 10 pname = "pyosf"; 11 version = "1.0.5"; 12 - disabled = isPy27; 13 14 src = fetchFromGitHub { 15 owner = "psychopy"; 16 repo = pname; 17 - rev = "v${version}"; 18 - sha256 = "1fkpmylpcbqa9ky111mz4qr1n8pik49gs7pblbb5qx6b54fzl5k2"; 19 }; 20 21 preBuild = "export HOME=$TMP"; 22 - buildInputs = [ pytest-runner ]; # required via `setup_requires` 23 - propagatedBuildInputs = [ requests ]; 24 25 - doCheck = false; # requires network access 26 - pythonImportsCheck = [ "pyosf" ]; 27 28 meta = with lib; { 29 - homepage = "https://github.com/psychopy/pyosf"; 30 description = "Pure Python library for simple sync with Open Science Framework"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ bcdarwin ]; 33 };
··· 1 { lib 2 , buildPythonPackage 3 , fetchFromGitHub 4 + , pythonOlder 5 , requests 6 }: 7 8 buildPythonPackage rec { 9 pname = "pyosf"; 10 version = "1.0.5"; 11 + format = "setuptools"; 12 + 13 + disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "psychopy"; 17 repo = pname; 18 + rev = "refs/tags/v${version}"; 19 + hash = "sha256-Yhb6HSnLdFzWouse/RKZ8SIbMia/hhD8TAovdqmvd7o="; 20 }; 21 22 + postPatch = '' 23 + substituteInPlace setup.py \ 24 + --replace "'pytest-runner', " "" 25 + ''; 26 + 27 preBuild = "export HOME=$TMP"; 28 + 29 + propagatedBuildInputs = [ 30 + requests 31 + ]; 32 33 + # Tests require network access 34 + doCheck = false; 35 + 36 + pythonImportsCheck = [ 37 + "pyosf" 38 + ]; 39 40 meta = with lib; { 41 description = "Pure Python library for simple sync with Open Science Framework"; 42 + homepage = "https://github.com/psychopy/pyosf"; 43 + changelog = "https://github.com/psychopy/pyosf/releases/tag/v${version}"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ bcdarwin ]; 46 };