summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/py-datastruct/default.nix
blob: 4658e6550b09e16516e0e8d6e97092c59eaa6dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  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 ];
  };
}