diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2023-12-07 01:20:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 01:20:16 +0100 |
commit | c495228d800bb94b13f2f5ad0611523d7c4f5a67 (patch) | |
tree | d90e4c35e96bb1e95e9d482290a9201917a85071 /pkgs/development | |
parent | 747224bf39576965deed4ec55b255e146815bcc2 (diff) | |
parent | 4e0981ab23c001cfb320b83c3cf5fa9492676355 (diff) |
Merge pull request #272540 from fabaff/python-osc-bump
python311Packages.python-osc: refactor
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/python-osc/default.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/python-osc/default.nix b/pkgs/development/python-modules/python-osc/default.nix index 500e6beb0b0ef..86c5894d81789 100644 --- a/pkgs/development/python-modules/python-osc/default.nix +++ b/pkgs/development/python-modules/python-osc/default.nix @@ -1,22 +1,39 @@ { lib , buildPythonPackage , fetchPypi +, pytestCheckHook +, pythonOlder +, setuptools }: buildPythonPackage rec { pname = "python-osc"; version = "1.8.3"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-pc4bpWyNgt9Ryz8pRrXdM6cFInkazEuFZOYtKyCtnKo="; }; - pythonImportsCheck = [ "pythonosc" ]; + nativeBuildInputs = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pythonosc" + ]; meta = with lib; { description = "Open Sound Control server and client in pure python"; homepage = "https://github.com/attwad/python-osc"; + changelog = "https://github.com/attwad/python-osc/blob/v${version}/CHANGELOG.md"; license = licenses.unlicense; maintainers = with maintainers; [ anirrudh ]; }; |