python311Packages.pycfdns: 2.0.1 -> 3.0.0
Diff: https://github.com/ludeeus/pycfdns/compare/refs/tags/2.0.1...3.0.0 Changelog: https://github.com/ludeeus/pycfdns/releases/tag/3.0.0
This commit is contained in:
@@ -1,30 +1,36 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, async-timeout
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycfdns";
|
||||
version = "2.0.1";
|
||||
format = "setuptools";
|
||||
version = "3.0.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ludeeus";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-f6kxYX/dg16OWYpw29dH4Z26ncLZCYyHKGc4fzoCld0=";
|
||||
hash = "sha256-bLzDakxKq8fcjEKSxc6D5VN9gfAu1M3/zaAU2UYnwSs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'version="master",' 'version="${version}",'
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'version="0",' 'version="${version}",'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
async-timeout
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
|
||||
Reference in New Issue
Block a user