Skip to content

Commit

Permalink
aioca: init at 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Synthetica9 committed Nov 29, 2024
1 parent 713459f commit 40f8230
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ in
scanf = final.callPackage ./epnix/tools/scanf {};
epicscorelibs = final.callPackage ./epnix/python-modules/epicscorelibs {};
pvxslibs = final.callPackage ./epnix/python-modules/pvxslibs {};
aioca = final.callPackage ./epnix/python-modules/aioca/default.nix {};

# epicscorelibs needs at least 2.11.
# TODO: remove for NixOS 24.11
Expand Down Expand Up @@ -91,7 +92,7 @@ in

channel-finder-service = callPackage ./epnix/tools/channel-finder/service {};

inherit (final.python3Packages) lewis pyepics;
inherit (final.python3Packages) lewis pyepics aioca;
inherit (callPackage ./epnix/tools/lewis/lib.nix {}) mkLewisSimulator;

pcas = callPackage ./epnix/tools/pcas {};
Expand Down
37 changes: 37 additions & 0 deletions pkgs/epnix/python-modules/aioca/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
numpy,
epicscorelibs,
epnixLib,
}:
buildPythonPackage rec {
pname = "aioca";
version = "1.8.1";

pyproject = true;

src = fetchFromGitHub {
owner = "DiamondLightSource";
repo = "aioca";
rev = "${version}";
hash = "sha256-szM/sVqeWWUj84lq/wsxNCf/aZwoCySeTnuLD+hYLyc=";
};

build-system = [setuptools setuptools-scm];
dependencies = [
setuptools
numpy
epicscorelibs
];

meta = {
description = "Asynchronous Channel Access client for asyncio and Python using libca via ctypes";
homepage = "https://DiamondLightSource.github.io/aioca";
license = lib.licenses.asl20;
maintainers = with epnixLib.maintainers; [synthetica];
};
}

0 comments on commit 40f8230

Please sign in to comment.