e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
34 lines
747 B
Nix
34 lines
747 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cstruct";
|
|
version = "5.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andreax79";
|
|
repo = "python-cstruct";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-VDJ0k3cOuHjckujf9yD1GVE+UM/Y9rjqhiq+MqGq2eM=";
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"cstruct"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "C-style structs for Python";
|
|
homepage = "https://github.com/andreax79/python-cstruct";
|
|
changelog = "https://github.com/andreax79/python-cstruct/blob/v${version}/changelog.txt";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ tnias ];
|
|
};
|
|
}
|