diff --git a/pkgs/development/python-modules/py2bit/default.nix b/pkgs/development/python-modules/py2bit/default.nix index 96fbdeeb0ab5..d1bfd6f34d66 100644 --- a/pkgs/development/python-modules/py2bit/default.nix +++ b/pkgs/development/python-modules/py2bit/default.nix @@ -2,28 +2,39 @@ lib, buildPythonPackage, fetchPypi, - pytest, + pytestCheckHook, + setuptools, + setuptools-scm, }: buildPythonPackage rec { pname = "py2bit"; - version = "0.3.0"; - format = "setuptools"; - - checkInput = [ pytest ]; + version = "0.3.3"; + pyproject = true; src = fetchPypi { inherit pname version; - sha256 = "1vw2nvw1yrl7ikkqsqs1pg239yr5nspvd969r1x9arms1k25a1a5"; + hash = "sha256-Jk9b/DnXKfGsrVTHYKwE+oog1BhPS1BdnDM9LgMlN3A="; }; - meta = with lib; { + build-system = [ + setuptools + setuptools-scm + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ "py2bitTest/test.py" ]; + + meta = { homepage = "https://github.com/deeptools/py2bit"; description = "File access to 2bit files"; longDescription = '' A python extension, written in C, for quick access to 2bit files. The extension uses lib2bit for file access. ''; - license = licenses.mit; - maintainers = with maintainers; [ scalavision ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ scalavision ]; }; }