nixpkgs/pkgs/development/python-modules/py-datastruct/default.nix
2025-08-28 07:36:38 +00:00

34 lines
785 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
}:
buildPythonPackage rec {
pname = "py-datastruct";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "kuba2k2";
repo = "datastruct";
tag = "v${version}";
hash = "sha256-oGgvEYfDVxSTrq5ymWyZx6WiTKsofNzQqUr6YBtfV2I=";
};
build-system = [ poetry-core ];
pythonImportsCheck = [ "datastruct" ];
# Add nativeCheckInputs = [ pytestCheckHook ]; once we update to v2.0.0 tag and remove below line
doCheck = false;
meta = {
description = "Combination of struct and dataclasses for easy parsing of binary formats";
homepage = "https://github.com/kuba2k2/datastruct";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mevatron ];
};
}