1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6}:
7
8buildPythonPackage rec {
9 pname = "py-datastruct";
10 version = "2.0.0";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "kuba2k2";
15 repo = "datastruct";
16 tag = "v${version}";
17 hash = "sha256-oGgvEYfDVxSTrq5ymWyZx6WiTKsofNzQqUr6YBtfV2I=";
18 };
19
20 build-system = [ poetry-core ];
21
22 pythonImportsCheck = [ "datastruct" ];
23
24 # Add nativeCheckInputs = [ pytestCheckHook ]; once we update to v2.0.0 tag and remove below line
25 doCheck = false;
26
27 meta = {
28 description = "Combination of struct and dataclasses for easy parsing of binary formats";
29 homepage = "https://github.com/kuba2k2/datastruct";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ mevatron ];
32 };
33}