Commit 7644538d authored by Valentin Reis's avatar Valentin Reis

[fix] Packaging modifications + add slots dependency for later use.

parent 9b767f98
......@@ -2,10 +2,13 @@
pkgs ? import ( fetchTarball "https://github.com/NixOS/nixpkgs/archive/17.09.tar.gz") {},
}:
let
callPackage = pkgs.lib.callPackageWith (pkgs // self);
pythonPackages = pkgs.python27Packages;
callPackage = pkgs.lib.callPackageWith (pkgs // pkgs.xlibs // self);
self = rec {
nrm = callPackage ./nrm.nix { inherit pythonPackages ; };
# Freeze python version to 3.5
pythonPackages = pkgs.python27Packages;
python = pkgs.python27;
slots = callPackage ./slots.nix { inherit pythonPackages; };
nrm = callPackage ./nrm.nix { inherit pythonPackages; };
inherit pkgs;
};
in
......
{ stdenv, pythonPackages, hwloc}:
{ stdenv, pythonPackages, hwloc }:
pythonPackages.buildPythonPackage {
name = "nrm";
src = ./.;
propagatedBuildInputs = with pythonPackages;[ six numpy tornado pyzmq hwloc];
propagatedBuildInputs = with pythonPackages;[ six numpy tornado pyzmq hwloc ];
buildInputs = with pythonPackages;[ pytest];
testPhase = '' pytest '';
}
{ stdenv, pythonPackages, fetchFromGitHub}:
pythonPackages.buildPythonPackage {
name = "nrm";
src = fetchFromGitHub {
owner = "roycoding";
repo = "slots" ;
rev = "1ed9b203fa02002c09b9dad73e2a97c04a45ef20";
sha256 = "0xv76lj9xpfh1jj78n9vxyiyakygn3q83cmvyrv1bwkj10f9x575";
};
propagatedBuildInputs = with pythonPackages;[ numpy ];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment