-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #203 from High-Voltage-Engineering/pythonsoftioc
softioc: init at 4.5.0; aioca init at 1.8.1
- Loading branch information
Showing
7 changed files
with
171 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
epnixLib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
setuptools, | ||
setuptools-dso, | ||
pip, | ||
numpy, | ||
}: | ||
buildPythonPackage rec { | ||
pname = "epicscorelibs"; | ||
version = "7.0.7.99.1.1"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-+d0sAZE88TlZ6ILHwq/M1dVc1QhL1FlyAeoRn2V1IjE="; | ||
}; | ||
|
||
dontConfigure = true; | ||
|
||
build-system = [setuptools]; | ||
dependencies = [setuptools-dso pip numpy]; | ||
|
||
meta = { | ||
description = "EPICS core libraries packaged as a Python module"; | ||
homepage = "https://github.com/epics-base/epicscorelibs"; | ||
license = epnixLib.licenses.epics; | ||
maintainers = with epnixLib.maintainers; [synthetica]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
buildPythonPackage, | ||
fetchFromGitHub, | ||
lib, | ||
epnixLib, | ||
}: | ||
buildPythonPackage rec { | ||
pname = "epicsdbbuilder"; | ||
version = "1.5"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "DiamondLightSource"; | ||
repo = pname; | ||
rev = version; | ||
hash = "sha256-H+8dJY6nY/4ogxcoZVmZzI7STI4x0urQKddlTifAqGQ="; | ||
}; | ||
|
||
meta = { | ||
description = "Tool for building EPICS databases"; | ||
homepage = "https://DiamondLightSource.github.io/epicsdbbuilder"; | ||
license = lib.licenses.asl20; | ||
maintainers = with epnixLib.maintainers; [synthetica]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
buildPythonPackage, | ||
epnix, | ||
fetchPypi, | ||
setuptools_dso, | ||
epicscorelibs, | ||
}: | ||
buildPythonPackage rec { | ||
pname = "pvxslibs"; | ||
inherit (epnix.support.pvxs) version; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-p9H6nK+iYJ5ML4x3wE0CmTq0sRFS4kGNgsyKEZPb2bU="; | ||
}; | ||
|
||
dontConfigure = true; | ||
|
||
nativeBuildInputs = [setuptools_dso epicscorelibs]; | ||
|
||
inherit (epnix.support.pvxs) meta; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchgit, | ||
setuptools, | ||
epicscorelibs, | ||
pvxslibs, | ||
epicsdbbuilder, | ||
epnixLib, | ||
}: | ||
buildPythonPackage rec { | ||
pname = "softioc"; | ||
version = "4.5.0"; | ||
|
||
pyproject = true; | ||
|
||
src = fetchgit { | ||
url = "https://github.com/DiamondLightSource/pythonSoftIOC.git"; | ||
rev = version; | ||
fetchSubmodules = true; | ||
hash = "sha256-JXfFkA3MzipqUw0riMTZmgCP9qe4Tfj8vZaFBwqoO+c="; | ||
}; | ||
|
||
# Set correct version instead of automatically detected version: | ||
postPatch = '' | ||
awk -i inplace "/__version__/ && !x {print; print \"__version__ = '${version}'\"; x=1; next} 1" setup.py | ||
''; | ||
|
||
build-system = [setuptools]; | ||
dependencies = [setuptools epicscorelibs epicsdbbuilder pvxslibs]; | ||
|
||
meta = { | ||
description = "Embed an EPICS IOC in a Python process"; | ||
homepage = "https://DiamondLightSource.github.io/pythonSoftIOC"; | ||
license = lib.licenses.asl20; | ||
maintainers = with epnixLib.maintainers; [synthetica]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters