python310Packages.single-version: init at 1.5.1
This commit is contained in:
parent
38639e08a0
commit
5d78fa265b
@ -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
|
31
pkgs/development/python-modules/single-version/default.nix
Normal file
31
pkgs/development/python-modules/single-version/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user