Skip to content

Commit 15c0684

Browse files
authored
Merge pull request #492 from minijackson/python-package-updates
Python packages updates
2 parents 6a659ad + ae7a45a commit 15c0684

File tree

7 files changed

+36
-80
lines changed

7 files changed

+36
-80
lines changed

pkgs/default.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ recurseIntoAttrs {
5454

5555
support = scope self (self: importByName ./support/by-name self);
5656

57-
# Lewis needs Python < 3.12
58-
inherit (final.python311Packages) lewis;
59-
60-
inherit (final.python3Packages) pyepics;
57+
inherit (final.python3Packages) lewis pyepics;
6158

6259
pythonSoftIOC = final.python3Packages.softioc;
6360

pkgs/python-modules/by-name/aioca/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
}:
1111
buildPythonPackage rec {
1212
pname = "aioca";
13-
version = "1.8.1";
13+
version = "2.0";
1414

1515
pyproject = true;
1616

1717
src = fetchFromGitHub {
1818
owner = "DiamondLightSource";
1919
repo = "aioca";
20-
rev = "${version}";
21-
hash = "sha256-szM/sVqeWWUj84lq/wsxNCf/aZwoCySeTnuLD+hYLyc=";
20+
tag = version;
21+
hash = "sha256-aXK+K8y9L9KeYWKs6Fs6AmpX1mDfYJGd8A/Gb11Yswo=";
2222
};
2323

2424
build-system = [

pkgs/python-modules/by-name/lewis/package.nix

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
fetchFromGitHub,
77
approvaltests,
88
setuptools,
9-
wheel,
9+
setuptools-scm,
1010
json-rpc,
1111
mock,
12+
pyasynchat,
1213
pytest,
1314
pyyaml,
1415
pyzmq,
@@ -17,31 +18,29 @@
1718
}:
1819
buildPythonPackage rec {
1920
pname = "lewis";
20-
version = "1.3.1";
21+
version = "1.3.5";
2122
pyproject = true;
2223

23-
# Due to mrjob, which is needed by approvaltests
24-
disabled = pythonAtLeast "3.12";
25-
2624
src = fetchFromGitHub {
2725
owner = "ISISComputingGroup";
2826
repo = "lewis";
29-
rev = "v${version}";
30-
hash = "sha256-7iMREHt6W26IzCFsRmojHqGuqIUHaCuvsKMMHuYflz0=";
27+
tag = "v${version}";
28+
hash = "sha256-VXZE+j/shlz1mLbDYECDNmLEeFGd2pl6+LEOGVHe0Zs=";
3129
};
3230

33-
nativeBuildInputs = [
31+
build-system = [
3432
setuptools
35-
wheel
33+
setuptools-scm
3634
];
3735

38-
propagatedBuildInputs = [
36+
dependencies = [
3937
json-rpc
4038
pyyaml
4139
pyzmq
4240
scanf
4341
semantic-version
44-
];
42+
]
43+
++ (lib.optional (pythonAtLeast "3.12") pyasynchat);
4544

4645
checkInputs = [
4746
approvaltests
@@ -53,7 +52,7 @@ buildPythonPackage rec {
5352

5453
meta = {
5554
description = "Let's write intricate simulators";
56-
homepage = "https://github.com/ISISComputingGroup/lewis";
55+
inherit (src.meta) homepage;
5756
mainProgram = "lewis";
5857
license = lib.licenses.gpl3Only;
5958
maintainers = with epnixLib.maintainers; [ minijackson ];

pkgs/python-modules/by-name/pvxslibs/package.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
buildPythonPackage,
33
epnix,
4-
fetchPypi,
54
setuptools,
65
setuptools-dso,
76
epicscorelibs,
87
}:
9-
buildPythonPackage rec {
8+
buildPythonPackage {
109
pname = "pvxslibs";
1110
inherit (epnix.support.pvxs) version src;
1211
pyproject = true;

pkgs/python-modules/by-name/scanf/package.nix

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,28 @@
22
lib,
33
epnixLib,
44
buildPythonPackage,
5-
fetchPypi,
6-
setuptools,
7-
wheel,
5+
fetchFromGitHub,
6+
flit-core,
87
}:
98
buildPythonPackage rec {
109
pname = "scanf";
11-
version = "1.5.2";
10+
version = "1.6.0";
1211
pyproject = true;
1312

14-
src = fetchPypi {
15-
inherit pname version;
16-
hash = "sha256-V2M0QKAqE4zRS2k9CScK8KA7sBfo1M/SSMeYizG4y4E=";
13+
src = fetchFromGitHub {
14+
owner = "joshburnett";
15+
repo = pname;
16+
tag = "v${version}";
17+
hash = "sha256-xiQh26bkGha8WCSWWdtcL+Ln+J1Rn5NyNKRbdSI1DgI=";
1718
};
1819

19-
nativeBuildInputs = [
20-
setuptools
21-
wheel
22-
];
20+
build-system = [ flit-core ];
2321

2422
pythonImportsCheck = [ "scanf" ];
2523

2624
meta = {
2725
description = "A small scanf implementation";
28-
homepage = "https://pypi.org/project/scanf/";
26+
inherit (src.meta) homepage;
2927
license = lib.licenses.mit;
3028
maintainers = with epnixLib.maintainers; [ minijackson ];
3129
};

pkgs/python-modules/by-name/softioc/package.nix

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchgit,
4+
fetchFromGitHub,
55
setuptools,
66
epicscorelibs,
77
pvxslibs,
8+
pyyaml,
89
epicsdbbuilder,
910
epnixLib,
1011
}:
1112
buildPythonPackage rec {
1213
pname = "softioc";
13-
version = "4.5.0";
14+
version = "4.6.1";
1415

1516
pyproject = true;
1617

17-
src = fetchgit {
18-
url = "https://github.com/DiamondLightSource/pythonSoftIOC.git";
19-
rev = version;
18+
src = fetchFromGitHub {
19+
owner = "DiamondLightSource";
20+
repo = "pythonSoftIOC";
21+
tag = version;
2022
fetchSubmodules = true;
21-
hash = "sha256-JXfFkA3MzipqUw0riMTZmgCP9qe4Tfj8vZaFBwqoO+c=";
23+
hash = "sha256-wvzV+5fwdqKhlZ2QmhLIuw7JdhXtKlfNWMmBiLJgCPY=";
2224
};
2325

2426
# Set correct version instead of automatically detected version:
@@ -32,11 +34,13 @@ buildPythonPackage rec {
3234
epicscorelibs
3335
epicsdbbuilder
3436
pvxslibs
37+
pyyaml
3538
];
3639

3740
meta = {
3841
description = "Embed an EPICS IOC in a Python process";
3942
homepage = "https://diamondlightsource.github.io/pythonSoftIOC/";
43+
changelog = "https://github.com/DiamondLightSource/pythonSoftIOC/blob/${src.rev}/CHANGELOG.rst";
4044
license = lib.licenses.asl20;
4145
maintainers = with epnixLib.maintainers; [ synthetica ];
4246
};

pkgs/python-modules/by-name/sphinxcontrib-mermaid/package.nix

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)