Skip to content

Instantly share code, notes, and snippets.

@Camsbury
Created September 8, 2019 22:52
Show Gist options
  • Save Camsbury/6e41e5148491e269cb75be63a75828ee to your computer and use it in GitHub Desktop.
Save Camsbury/6e41e5148491e269cb75be63a75828ee to your computer and use it in GitHub Desktop.
let
inherit (import <nixpkgs> {}) fetchFromGitHub;
nixpkgs = import (fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "9ebc6ad944c9e53f58536ef50c64b6f057e5fa4c";
sha256 = "1hv53kw8nwg9k3kim19ykbmn3yksgmlw1gjbd6d5midhmjjc6mhv";
});
overlays = [(self: super: {
python36 = super.python36.override {
packageOverrides = (
pythonSelf: pythonSuper: {
pandas = pythonSuper.pandas.overridePythonAttrs (
oldAttrs: {
doCheck = false;
doInstallCheck = false;
}
);
}
);
};
})];
pkgs = nixpkgs {inherit overlays;};
in
with pkgs;
mkShell {
name = "pandas";
buildInputs = [
(python36.withPackages (
pythonPackages: with pythonPackages;
[ pandas
]
))
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment