shells/axidraw: add more packages

This commit is contained in:
Artemis Tosini 2024-01-15 20:42:27 +00:00
parent efb6657ea2
commit 7fc1686696
Signed by: artemist
GPG key ID: EE5227935FE3FF18
3 changed files with 19 additions and 8 deletions

View file

@ -50,12 +50,10 @@
// final.callPackage ./packages/kernelPatches { }; // final.callPackage ./packages/kernelPatches { };
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [ pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
(pythonFinal: pythonPrev: { (pythonFinal: pythonPrev:
inherit (final.callPackage ./packages/axidraw/modules.nix { (final.callPackage ./packages/axidraw/modules.nix {
inherit pythonFinal pythonPrev; inherit pythonFinal pythonPrev;
}) }))
ink-extensions plotink axidrawinternal axicli;
})
]; ];
}; };
}; };

View file

@ -1,4 +1,4 @@
{ pythonFinal, pythonPrev, fetchPypi, fetchzip }: { pythonFinal, pythonPrev, fetchPypi, fetchzip, fetchurl }:
let let
inherit (pythonFinal) buildPythonPackage; inherit (pythonFinal) buildPythonPackage;
@ -10,6 +10,17 @@ let
hash = "sha256-RPh00jiiH1RqqKZ10ylFP1J+iBYl5VOmZ8g0vFH8Ibg="; hash = "sha256-RPh00jiiH1RqqKZ10ylFP1J+iBYl5VOmZ8g0vFH8Ibg=";
}; };
in { in {
drawsvg = buildPythonPackage {
pname = "drawsvg";
version = "2.3.0";
format = "wheel";
src = fetchurl {
url =
"https://files.pythonhosted.org/packages/27/4f/65d72a014026495d8d2847e66bbe542cf899e50f087a50e0abab9c58ef3c/drawsvg-2.3.0-py3-none-any.whl";
sha256 = "1gqa5q5b7y38isyw1kgq2lprw5709jv13pic9s6bk80dbm32pbck";
};
};
ink-extensions = buildPythonPackage rec { ink-extensions = buildPythonPackage rec {
pname = "ink_extensions"; pname = "ink_extensions";
version = "1.3.2"; version = "1.3.2";

View file

@ -1,10 +1,12 @@
{ lib, mkShell, python3, inkscape-with-extensions, inkscape-extensions }: { lib, mkShell, python3, inkscape-with-extensions, inkscape-extensions, jupyter
}:
mkShell { mkShell {
packages = [ packages = [
(inkscape-with-extensions.override { (inkscape-with-extensions.override {
inkscapeExtensions = [ inkscape-extensions.axidraw ]; inkscapeExtensions = [ inkscape-extensions.axidraw ];
}) })
python3 python3
] ++ (with python3.pkgs; [ ipython requests axicli ]); jupyter
] ++ (with python3.pkgs; [ ipython requests axicli drawsvg ]);
} }