diff options
Diffstat (limited to 'pkgs/development/python-modules/apipkg/default.nix')
-rw-r--r-- | pkgs/development/python-modules/apipkg/default.nix | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/apipkg/default.nix b/pkgs/development/python-modules/apipkg/default.nix index b37c1b11fe6fe..e3cf3a0c7757a 100644 --- a/pkgs/development/python-modules/apipkg/default.nix +++ b/pkgs/development/python-modules/apipkg/default.nix @@ -1,39 +1,34 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, hatch-vcs -, hatchling -, pytestCheckHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + pytestCheckHook, }: buildPythonPackage rec { pname = "apipkg"; version = "3.0.2"; - format = "pyproject"; + pyproject = true; src = fetchFromGitHub { owner = "pytest-dev"; - repo = pname; + repo = "apipkg"; rev = "refs/tags/v${version}"; hash = "sha256-ANLD7fUMKN3RmAVjVkcpwUH6U9ASalXdwKtPpoC8Urs="; }; - nativeBuildInputs = [ + build-system = [ hatch-vcs hatchling ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ - "test_apipkg.py" - ]; + pytestFlagsArray = [ "test_apipkg.py" ]; - pythonImportsCheck = [ - "apipkg" - ]; + pythonImportsCheck = [ "apipkg" ]; meta = with lib; { changelog = "https://github.com/pytest-dev/apipkg/blob/main/CHANGELOG"; |