depot/third_party/nixpkgs/pkgs/development/python-modules/cstruct/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

31 lines
741 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 ];
};
}