mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
nanovna-saver: use packageOverrides
This commit is contained in:
parent
6f67d1734a
commit
8df3adc8f8
1 changed files with 21 additions and 8 deletions
|
@ -1,12 +1,25 @@
|
|||
{ lib, mkDerivationWith, wrapQtAppsHook, python3Packages, fetchFromGitHub
|
||||
, qtbase }:
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.3.8";
|
||||
python = python3.override {
|
||||
packageOverrides = self: super: {
|
||||
scipy = super.scipy.overridePythonAttrs (oldAttrs: rec {
|
||||
version = "1.4.1";
|
||||
src = oldAttrs.src.override {
|
||||
inherit version;
|
||||
sha256 = "0ndw7zyxd2dj37775mc75zm4fcyiipnqxclc45mkpxy8lvrvpqfy";
|
||||
};
|
||||
doCheck = false;
|
||||
});
|
||||
};
|
||||
};
|
||||
in python.pkgs.buildPythonApplication rec {
|
||||
pname = "nanovna-saver";
|
||||
|
||||
in mkDerivationWith python3Packages.buildPythonApplication {
|
||||
inherit pname version;
|
||||
version = "0.3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "NanoVNA-Saver";
|
||||
|
@ -17,9 +30,9 @@ in mkDerivationWith python3Packages.buildPythonApplication {
|
|||
|
||||
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
cython
|
||||
scipy_1_4
|
||||
scipy
|
||||
pyqt5
|
||||
pyserial
|
||||
numpy
|
||||
|
|
Loading…
Reference in a new issue