mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
33 lines
785 B
Nix
33 lines
785 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-datastruct";
|
|
version = "1.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kuba2k2";
|
|
repo = "datastruct";
|
|
tag = "v${version}";
|
|
hash = "sha256-KEIvibGnQnIDMpmodWN2Az/ypc37ZyGvgVPC7voFmlA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|