|
| 1 | +{ mkDerivation, ad, aeson, base, bytestring, containers |
| 2 | +, deepseq, directory, filepath, lib, process, random |
| 3 | +, raw-strings-qq, split, tasty, tasty-expected-failure |
| 4 | +, tasty-golden, tasty-hunit, temporary, which, pkgs |
| 5 | +}: |
1 | 6 | let |
2 | | - sources = import nix/sources.nix {}; |
3 | | - haskell-nix = (import sources."haskell.nix" {}); |
4 | | - nixpkgs = haskell-nix.pkgs; |
5 | | - gitignore = (import sources."gitignore.nix" { |
6 | | - inherit (nixpkgs) lib; |
7 | | - }).gitignoreSource; |
8 | | - |
9 | | - src = nixpkgs.lib.cleanSourceWith { |
10 | | - name = "matplotlib"; |
11 | | - src = gitignore ./.; |
12 | | - }; |
| 7 | + python = pkgs.python3.withPackages (p: with p; [ |
| 8 | + matplotlib |
| 9 | + numpy |
| 10 | + scipy |
| 11 | + ]); |
13 | 12 | in |
14 | | -nixpkgs.haskell-nix.stackProject { |
15 | | - inherit src; |
16 | | - modules = [({pkgs, ...}: { |
17 | | - packages.matplotlib.components.library.build-tools = |
18 | | - [ pkgs.buildPackages.python39Packages.matplotlib |
19 | | - pkgs.buildPackages.python39Packages.scipy |
20 | | - pkgs.buildPackages.texlive.combined.scheme-small ]; |
21 | | - packages.matplotlib.components.tests.matplotlib-test.build-tools = |
22 | | - [ pkgs.buildPackages.python39Packages.matplotlib |
23 | | - pkgs.buildPackages.python39Packages.scipy |
24 | | - pkgs.buildPackages.texlive.combined.scheme-small ]; |
25 | | - doHaddock = false; |
26 | | - })]; |
| 13 | +mkDerivation { |
| 14 | + pname = "matplotlib"; |
| 15 | + version = "0.7.7"; |
| 16 | + src = ./.; |
| 17 | + libraryHaskellDepends = [ |
| 18 | + aeson base bytestring containers deepseq filepath process split |
| 19 | + temporary |
| 20 | + ]; |
| 21 | + testHaskellDepends = [ |
| 22 | + ad base bytestring directory process random raw-strings-qq split |
| 23 | + tasty tasty-expected-failure tasty-golden tasty-hunit temporary |
| 24 | + ]; |
| 25 | + librarySystemDepends = [ python which ]; |
| 26 | + testSystemDepends = [ python which ]; |
| 27 | + homepage = "https://github.com/abarbu/matplotlib-haskell"; |
| 28 | + description = "Bindings to Matplotlib; a Python plotting library"; |
| 29 | + license = lib.licenses.bsd3; |
27 | 30 | } |
0 commit comments