mirror of
https://github.com/vale981/master-thesis
synced 2025-03-06 02:21:38 -05:00
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
let
|
|
mach-nix = import (builtins.fetchGit {
|
|
url = "https://github.com/DavHau/mach-nix";
|
|
ref = "refs/tags/3.3.0";
|
|
}) {
|
|
python = "python39Full";
|
|
};
|
|
fcSpline = (mach-nix.buildPythonPackage
|
|
{src="https://github.com/cimatosa/fcSpline/tarball/master";
|
|
pname="fcSpline";
|
|
version="0.1";
|
|
requirements=''
|
|
numpy
|
|
cython
|
|
setuptools
|
|
scipy
|
|
'';
|
|
});
|
|
pyEnv = mach-nix.mkPython rec {
|
|
packagesExtra = [
|
|
fcSpline
|
|
(mach-nix.buildPythonPackage
|
|
{src="https://github.com/cimatosa/stocproc/tarball/master";
|
|
pname="stocproc";
|
|
packagesExtra = [fcSpline];
|
|
# buildInputs.add = [fcSpline];
|
|
version = "1.0.0";
|
|
requirements = ''
|
|
numpy
|
|
cython
|
|
setuptools
|
|
mpmath
|
|
scipy
|
|
'';
|
|
})
|
|
];
|
|
_.stocproc.buildInputs.add = [fcSpline];
|
|
_.stocproc.patches = [./stocproc.patch];
|
|
requirements = ''
|
|
numpy
|
|
jupyter-spaces
|
|
ptpython
|
|
jedi
|
|
black
|
|
flake8
|
|
matplotlib
|
|
scipy
|
|
jupyter
|
|
h5py
|
|
sqlitedict
|
|
pycairo
|
|
pygobject
|
|
'';
|
|
ignoreCollisions = true;
|
|
providers.tk = "nixpkgs";
|
|
};
|
|
in
|
|
pkgs.mkShell {
|
|
buildInputs = [pyEnv pkgs.cairo ];
|
|
}
|