python310Packages.single-version: init at 1.5.1

This commit is contained in:
P. R. d. O 2022-03-07 11:19:11 -06:00
parent 38639e08a0
commit 5d78fa265b
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,21 @@
From d949b37151cd538d4c6a15e1ba6c1343f8bff76d Mon Sep 17 00:00:00 2001
From: "P. R. d. O" <d.ol.rod@protonmail.com>
Date: Mon, 6 Dec 2021 15:26:19 -0600
Subject: [PATCH] set poetry-core
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index d3fdc52..bd7ddc2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -27,4 +27,4 @@ black = "^19.10b0"
[build-system]
requires = ["poetry>=0.12"]
-build-backend = "poetry.masonry.api"
+build-backend = "poetry.core.masonry.api"
--
2.33.1

View File

@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pytestCheckHook }:
buildPythonPackage rec {
pname = "single-version";
version = "1.5.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "hongquan";
repo = pname;
rev = "v${version}";
sha256 = "sha256-I8ATQzPRH9FVjqPoqrNjYMBU5azpmkLjRmHcz943C10=";
};
patches = [
./0001-set-poetry-core.patch
];
nativeBuildInputs = [ poetry-core ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "single_version" ];
meta = with lib; {
description = "Utility to let you have a single source of version in your code base";
homepage = "https://github.com/hongquan/single-version";
license = licenses.mit;
maintainers = with maintainers; [ wolfangaukang ];
};
}

View File

@ -9196,6 +9196,8 @@ in {
simpy = callPackage ../development/python-modules/simpy { };
single-version = callPackage ../development/python-modules/single-version { };
signify = callPackage ../development/python-modules/signify { };
siosocks = callPackage ../development/python-modules/siosocks { };