From 2619e47187e4c81200fd467a2bd7c4d6290a85fc Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 27 May 2023 04:20:00 +0000 Subject: [PATCH] python310Packages.verspec: init at 0.1.0 --- .../python-modules/verspec/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/verspec/default.nix diff --git a/pkgs/development/python-modules/verspec/default.nix b/pkgs/development/python-modules/verspec/default.nix new file mode 100644 index 000000000000..05a6a446c23e --- /dev/null +++ b/pkgs/development/python-modules/verspec/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pretend +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "verspec"; + version = "0.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-xFBMppeyBWzbS/pxIUYfWg6BgJJVtBwD3aS6gjY3wB4="; + }; + + nativeCheckInputs = [ + pretend + pytestCheckHook + ]; + + disabledTestPaths = [ + # Import fail + "test/test_specifiers.py" + ]; + + pythonImportsCheck = [ + "verspec" + ]; + + meta = with lib; { + description = "Flexible version handling"; + homepage = "https://github.com/jimporter/verspec"; + changelog = "https://github.com/jimporter/averspec/releases/tag/v${version}"; + license = with licenses; [ bsd2 /* and */ asl20 ]; + maintainers = with maintainers; [ marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7fef6b0d2445..4423b45336ef 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12750,6 +12750,8 @@ self: super: with self; { versiontools = callPackage ../development/python-modules/versiontools { }; + verspec = callPackage ../development/python-modules/verspec { }; + vertica-python = callPackage ../development/python-modules/vertica-python { }; veryprettytable = callPackage ../development/python-modules/veryprettytable { };