partftpy: init at 0.4.0

This is a fork of tftpy required for copyparty
This commit is contained in:
Shelvacu
2025-11-02 09:37:24 -08:00
committed by Shelvacu on fw
parent 0433e228a3
commit cf67993b3e
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,38 @@
# mostly copied from https://github.com/9001/copyparty/blob/hovudstraum/contrib/package/nix/partftpy/default.nix
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "partftpy";
version = "0.4.0";
src = fetchFromGitHub {
owner = "9001";
repo = "partftpy";
tag = "v${version}";
hash = "sha256-9+zY9OpGQ3LbORwtjEYZF1lRaQCLmSyQ9KQdxaOzMuM=";
};
postPatch = ''
# poor setuptools gets confused by this dir
rm -r t
'';
pyproject = true;
build-system = [ setuptools ];
pythonImportsCheck = [ "partftpy.TftpServer" ];
meta = {
description = "Pure Python TFTP library (copyparty fork of tftpy)";
homepage = "https://github.com/9001/partftpy";
changelog = "https://github.com/9001/partftpy/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.shelvacu ];
platforms = lib.platforms.all;
};
}
+2
View File
@@ -11550,6 +11550,8 @@ self: super: with self; {
partd = callPackage ../development/python-modules/partd { };
partftpy = callPackage ../development/python-modules/partftpy { };
partial-json-parser = callPackage ../development/python-modules/partial-json-parser { };
particle = callPackage ../development/python-modules/particle { };