nixpkgs/pkgs/development/python-modules/sipyco/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

44 lines
907 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, numpy
}:
buildPythonPackage rec {
pname = "sipyco";
version = "1.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "m-labs";
repo = "sipyco";
rev = "refs/tags/v${version}";
hash = "sha256-sEYWtp11piUIa8YyuTOdFIIJ2GfcrUb+HEzPVKr4hW8=";
};
propagatedBuildInputs = [
numpy
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"sipyco"
];
meta = with lib; {
description = "Simple Python Communications - used by the ARTIQ experimental control package";
mainProgram = "sipyco_rpctool";
homepage = "https://github.com/m-labs/sipyco";
changelog = "https://github.com/m-labs/sipyco/releases/tag/v${version}";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ charlesbaynham ];
};
}