Commit 0db7db210bee0629096e826770b3885df82ecbef
1 parent
48a74a9592
Exists in
master
updated packaging
Showing 3 changed files with 17 additions and 18 deletions Inline Diff
flake.lock
View file @
0db7db2
{ | 1 | 1 | { | |
"nodes": { | 2 | 2 | "nodes": { | |
"flake-utils": { | 3 | 3 | "flake-utils": { | |
"locked": { | 4 | 4 | "locked": { | |
"lastModified": 1601282935, | 5 | 5 | "lastModified": 1601282935, | |
"narHash": "sha256-WQAFV6sGGQxrRs3a+/Yj9xUYvhTpukQJIcMbIi7LCJ4=", | 6 | 6 | "narHash": "sha256-WQAFV6sGGQxrRs3a+/Yj9xUYvhTpukQJIcMbIi7LCJ4=", | |
"owner": "numtide", | 7 | 7 | "owner": "numtide", | |
"repo": "flake-utils", | 8 | 8 | "repo": "flake-utils", | |
"rev": "588973065fce51f4763287f0fda87a174d78bf48", | 9 | 9 | "rev": "588973065fce51f4763287f0fda87a174d78bf48", | |
"type": "github" | 10 | 10 | "type": "github" | |
}, | 11 | 11 | }, | |
"original": { | 12 | 12 | "original": { | |
"owner": "numtide", | 13 | 13 | "owner": "numtide", | |
"repo": "flake-utils", | 14 | 14 | "repo": "flake-utils", | |
"type": "github" | 15 | 15 | "type": "github" | |
} | 16 | 16 | } | |
}, | 17 | 17 | }, | |
"mach-nix-src": { | 18 | 18 | "mach-nix-src": { | |
"inputs": { | 19 | 19 | "inputs": { | |
"flake-utils": "flake-utils", | 20 | 20 | "flake-utils": "flake-utils", | |
"nixpkgs": "nixpkgs", | 21 | 21 | "nixpkgs": "nixpkgs", | |
"pypi-deps-db": "pypi-deps-db" | 22 | 22 | "pypi-deps-db": "pypi-deps-db" | |
}, | 23 | 23 | }, | |
"locked": { | 24 | 24 | "locked": { | |
"lastModified": 1623312259, | 25 | 25 | "lastModified": 1623312259, | |
"narHash": "sha256-RkqyGWezwVOII2LTJFKVH6UXjSXybMucbuyOjFWiSdE=", | 26 | 26 | "narHash": "sha256-RkqyGWezwVOII2LTJFKVH6UXjSXybMucbuyOjFWiSdE=", | |
"owner": "DavHau", | 27 | 27 | "owner": "DavHau", | |
"repo": "mach-nix", | 28 | 28 | "repo": "mach-nix", | |
"rev": "ca166a5062e26f6852ff0a6e854fd7563a48afe4", | 29 | 29 | "rev": "ca166a5062e26f6852ff0a6e854fd7563a48afe4", | |
"type": "github" | 30 | 30 | "type": "github" | |
}, | 31 | 31 | }, | |
"original": { | 32 | 32 | "original": { | |
"owner": "DavHau", | 33 | 33 | "owner": "DavHau", | |
"ref": "conda-beta", | 34 | 34 | "ref": "conda-beta", | |
"repo": "mach-nix", | 35 | 35 | "repo": "mach-nix", | |
"type": "github" | 36 | 36 | "type": "github" | |
} | 37 | 37 | } | |
}, | 38 | 38 | }, | |
"nixpkgs": { | 39 | 39 | "nixpkgs": { | |
"locked": { | 40 | 40 | "locked": { | |
"lastModified": 1622797669, | 41 | 41 | "lastModified": 1622797669, | |
"narHash": "sha256-xIyWeoYExzF0KNaKcqfxEX58fN4JTIQxTJWbsAujllc=", | 42 | 42 | "narHash": "sha256-xIyWeoYExzF0KNaKcqfxEX58fN4JTIQxTJWbsAujllc=", | |
"owner": "NixOS", | 43 | 43 | "owner": "NixOS", | |
"repo": "nixpkgs", | 44 | 44 | "repo": "nixpkgs", | |
"rev": "1ca6b0a0cc38dbba0441202535c92841dd39d1ae", | 45 | 45 | "rev": "1ca6b0a0cc38dbba0441202535c92841dd39d1ae", | |
"type": "github" | 46 | 46 | "type": "github" | |
}, | 47 | 47 | }, | |
"original": { | 48 | 48 | "original": { | |
"id": "nixpkgs", | 49 | 49 | "id": "nixpkgs", | |
"ref": "nixos-unstable", | 50 | 50 | "ref": "nixos-unstable", | |
"type": "indirect" | 51 | 51 | "type": "indirect" | |
} | 52 | 52 | } | |
}, | 53 | 53 | }, | |
"nixpkgs_2": { | 54 | 54 | "nixpkgs_2": { | |
"locked": { | 55 | 55 | "locked": { | |
"lastModified": 1624634316, | 56 | 56 | "lastModified": 1624727938, | |
"narHash": "sha256-MUEJzeZZr+nP1V9D19PS9mKVJUJBgnweHFGuFN6hvAQ=", | 57 | 57 | "narHash": "sha256-K0fYTmUVZTlB8UKBDL0JOmGlYuTWeEaOcpPJUe9NL0U=", | |
"owner": "NixOS", | 58 | 58 | "owner": "NixOS", | |
"repo": "nixpkgs", | 59 | 59 | "repo": "nixpkgs", | |
"rev": "61e983dbac933aa26cf913aef47aa92a5c40143c", | 60 | 60 | "rev": "c74057781fee9d29a28172402c6edeb68dd2d885", | |
"type": "github" | 61 | 61 | "type": "github" | |
}, | 62 | 62 | }, | |
"original": { | 63 | 63 | "original": { | |
"owner": "NixOS", | 64 | 64 | "owner": "NixOS", | |
"repo": "nixpkgs", | 65 | 65 | "repo": "nixpkgs", | |
"type": "github" | 66 | 66 | "type": "github" | |
} | 67 | 67 | } | |
}, | 68 | 68 | }, | |
"pypi-deps-db": { | 69 | 69 | "pypi-deps-db": { | |
"flake": false, | 70 | 70 | "flake": false, | |
"locked": { | 71 | 71 | "locked": { | |
"lastModified": 1622970040, | 72 | 72 | "lastModified": 1622970040, | |
"narHash": "sha256-u//RFnae/XMIhoy83G2uH2Qu/1LiUhVCdwwY1xj4Ufs=", | 73 | 73 | "narHash": "sha256-u//RFnae/XMIhoy83G2uH2Qu/1LiUhVCdwwY1xj4Ufs=", | |
"owner": "DavHau", | 74 | 74 | "owner": "DavHau", | |
"repo": "pypi-deps-db", | 75 | 75 | "repo": "pypi-deps-db", | |
"rev": "be6591698c67a86a69c81fef72167e38d038a9fc", | 76 | 76 | "rev": "be6591698c67a86a69c81fef72167e38d038a9fc", | |
"type": "github" | 77 | 77 | "type": "github" | |
}, | 78 | 78 | }, | |
"original": { | 79 | 79 | "original": { | |
"owner": "DavHau", | 80 | 80 | "owner": "DavHau", | |
"repo": "pypi-deps-db", | 81 | 81 | "repo": "pypi-deps-db", | |
"type": "github" | 82 | 82 | "type": "github" | |
} | 83 | 83 | } | |
}, | 84 | 84 | }, | |
"root": { | 85 | 85 | "root": { | |
"inputs": { | 86 | 86 | "inputs": { | |
"mach-nix-src": "mach-nix-src", | 87 | 87 | "mach-nix-src": "mach-nix-src", | |
"nixpkgs": "nixpkgs_2", | 88 | 88 | "nixpkgs": "nixpkgs_2", | |
"utils": "utils" | 89 | 89 | "utils": "utils" | |
} | 90 | 90 | } | |
}, | 91 | 91 | }, | |
"utils": { | 92 | 92 | "utils": { | |
"locked": { | 93 | 93 | "locked": { | |
"lastModified": 1623875721, | 94 | 94 | "lastModified": 1623875721, | |
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", | 95 | 95 | "narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", | |
"owner": "numtide", | 96 | 96 | "owner": "numtide", | |
"repo": "flake-utils", | 97 | 97 | "repo": "flake-utils", | |
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772", | 98 | 98 | "rev": "f7e004a55b120c02ecb6219596820fcd32ca8772", | |
"type": "github" | 99 | 99 | "type": "github" | |
}, | 100 | 100 | }, | |
"original": { | 101 | 101 | "original": { | |
"owner": "numtide", | 102 | 102 | "owner": "numtide", | |
"repo": "flake-utils", | 103 | 103 | "repo": "flake-utils", | |
"type": "github" | 104 | 104 | "type": "github" | |
} | 105 | 105 | } | |
} | 106 | 106 | } | |
}, | 107 | 107 | }, | |
"root": "root", | 108 | 108 | "root": "root", | |
"version": 7 | 109 | 109 | "version": 7 | |
} | 110 | 110 | } | |
111 | 111 | |||
flake.nix
View file @
0db7db2
{ | 1 | 1 | { | |
description = "A very basic flake to create an environment for neurocube_consumer development"; | 2 | 2 | description = "A very basic flake to create an environment for neurocube_consumer development"; | |
3 | 3 | |||
inputs.nixpkgs.url = "github:NixOS/nixpkgs"; | 4 | 4 | inputs.nixpkgs.url = "github:NixOS/nixpkgs"; | |
inputs.utils.url = "github:numtide/flake-utils"; | 5 | 5 | inputs.utils.url = "github:numtide/flake-utils"; | |
inputs.mach-nix-src.url = "github:DavHau/mach-nix/conda-beta"; | 6 | 6 | inputs.mach-nix-src.url = "github:DavHau/mach-nix/conda-beta"; | |
7 | 7 | |||
outputs = { self, nixpkgs, utils, mach-nix-src }: let | 8 | 8 | outputs = { self, nixpkgs, utils, mach-nix-src }: let | |
system = "x86_64-linux"; | 9 | 9 | system = "x86_64-linux"; | |
pkgs = (import nixpkgs { inherit system;}).pkgs; | 10 | 10 | pkgs = (import nixpkgs { inherit system;}).pkgs; | |
mach-nix-utils = import mach-nix-src { | 11 | 11 | mach-nix-utils = import mach-nix-src { | |
inherit pkgs; | 12 | 12 | inherit pkgs; | |
python = "python3"; | 13 | 13 | python = "python3"; | |
}; | 14 | 14 | }; | |
mach-provider = { | 15 | 15 | mach-provider = { | |
# The default for all packages which are not specified explicitly | 16 | 16 | # The default for all packages which are not specified explicitly | |
#_default = "wheel,nixpkgs,sdist"; | 17 | 17 | #_default = "wheel,nixpkgs,sdist"; | |
18 | 18 | |||
# Explicit settings per package | 19 | 19 | # Explicit settings per package | |
}; | 20 | 20 | }; | |
requirements = '' | 21 | 21 | pyEnv = mach-nix-utils.mkPython{ | |
pandas | 22 | 22 | requirements = builtins.readFile ./requirements.txt; | |
watchdog | 23 | 23 | providers = mach-provider; | |
debugpy | 24 | 24 | }; | |
pytest | 25 | |||
sphinx | 26 | |||
sphinx_rtd_theme | 27 | |||
''; | 28 | |||
29 | ||||
in | 30 | 25 | in | |
{ | 31 | 26 | { | |
devShell."${system}" = (mach-nix-utils.mkPythonShell { | 32 | 27 | devShell."${system}" = pkgs.mkShell{ | |
inherit requirements; | 33 | 28 | buildInputs = [pkgs.google-drive-ocamlfuse pyEnv]; | |
providers = mach-provider; | 34 | 29 | }; | |
}) // (pkgs.mkShell { | 35 | |||
nativeBuildInputs = [pkgs.google-drive-ocamlfuse]; | 36 | |||
}); | 37 | |||
}; | 38 | 30 | }; | |
} | 39 | 31 | } | |
40 | 32 | |||
requirements.txt
View file @
0db7db2
File was created | 1 | pandas | ||
2 | dask | |||
3 | watchdog | |||
4 | debugpy | |||
5 | pytest | |||
6 | sphinx | |||
7 | sphinx_rtd_theme |