Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python3Packages.setproctitle: 1.3.6 -> 1.3.7

+18 -15
+18 -15
pkgs/development/python-modules/setproctitle/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - pythonOlder, 5 - fetchPypi, 4 + fetchFromGitHub, 6 5 setuptools, 7 6 pytestCheckHook, 7 + procps, 8 8 }: 9 9 10 10 buildPythonPackage rec { 11 11 pname = "setproctitle"; 12 - version = "1.3.6"; 12 + version = "1.3.7"; 13 13 pyproject = true; 14 14 15 - disabled = pythonOlder "3.6"; 16 - 17 - src = fetchPypi { 18 - inherit pname version; 19 - hash = "sha256-yfMrlscAuzhPM/fPB5VLtgnTXdgnUs71f7LuCWhAkWk="; 15 + src = fetchFromGitHub { 16 + owner = "dvarrazzo"; 17 + repo = "py-setproctitle"; 18 + tag = "version-${version}"; 19 + hash = "sha256-dfOdtfOXRAoCQLW307+YMsFIWRv4CupbKUxckev1oUw="; 20 20 }; 21 21 22 - nativeBuildInputs = [ setuptools ]; 22 + build-system = [ setuptools ]; 23 23 24 - nativeCheckInputs = [ pytestCheckHook ]; 24 + nativeCheckInputs = [ 25 + pytestCheckHook 26 + procps 27 + ]; 25 28 26 - # tries to compile programs with dependencies that aren't available 27 - disabledTestPaths = [ "tests/setproctitle_test.py" ]; 29 + pythonImportsCheck = [ "setproctitle" ]; 28 30 29 - meta = with lib; { 31 + meta = { 30 32 description = "Allows a process to change its title (as displayed by system tools such as ps and top)"; 31 33 homepage = "https://github.com/dvarrazzo/py-setproctitle"; 32 - license = licenses.bsdOriginal; 33 - maintainers = with maintainers; [ exi ]; 34 + changelog = "https://github.com/dvarrazzo/py-setproctitle/blob/${src.tag}/HISTORY.rst"; 35 + license = lib.licenses.bsd3; 36 + maintainers = with lib.maintainers; [ exi ]; 34 37 }; 35 38 }