Skip to content

Commit

Permalink
pkgs/lewis: init at 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
minijackson committed Feb 22, 2024
1 parent 887e7e5 commit aefd957
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ in
mkEpicsPackage = callPackage ./build-support/mk-epics-package.nix {};

python3Packages = prev.python3Packages.overrideScope (final: prev: {
lewis = final.callPackage ./epnix/tools/lewis {};
scanf = final.callPackage ./epnix/tools/scanf {};
});

Expand Down Expand Up @@ -48,6 +49,8 @@ in

ca-gateway = callPackage ./epnix/tools/ca-gateway {};

inherit (final.python3Packages) lewis;

pcas = callPackage ./epnix/tools/pcas {};

phoebus = callPackage ./epnix/tools/phoebus/client {
Expand Down
55 changes: 55 additions & 0 deletions pkgs/epnix/tools/lewis/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
approvaltests,
setuptools,
wheel,
json-rpc,
mock,
pytest,
pyyaml,
pyzmq,
scanf,
semantic-version,
}:
buildPythonPackage rec {
pname = "lewis";
version = "1.3.1";
pyproject = true;

src = fetchFromGitHub {
owner = "ess-dmsc";
repo = "lewis";
rev = "v${version}";
hash = "sha256-7iMREHt6W26IzCFsRmojHqGuqIUHaCuvsKMMHuYflz0=";
};

nativeBuildInputs = [
setuptools
wheel
];

propagatedBuildInputs = [
json-rpc
pyyaml
pyzmq
scanf
semantic-version
];

checkInputs = [
approvaltests
mock
pytest
];

pythonImportsCheck = ["lewis"];

meta = with lib; {
description = "Let's write intricate simulators";
homepage = "https://github.com/ess-dmsc/lewis";
license = licenses.gpl3Only;
maintainers = with maintainers; [minijackson];
};
}

0 comments on commit aefd957

Please sign in to comment.