From 9c6a808212257588be2ac785aea328452407e3fc Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Fri, 16 Feb 2024 08:51:04 +0100 Subject: [PATCH] [python] Add native module --- python/native/flake.lock | 61 ++++++++++++++++++++++++++++++++++++++++ python/native/flake.nix | 25 ++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 python/native/flake.lock create mode 100644 python/native/flake.nix diff --git a/python/native/flake.lock b/python/native/flake.lock new file mode 100644 index 0000000..aa51e81 --- /dev/null +++ b/python/native/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1705309234, + "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1707956935, + "narHash": "sha256-ZL2TrjVsiFNKOYwYQozpbvQSwvtV/3Me7Zwhmdsfyu4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "a4d4fe8c5002202493e87ec8dbc91335ff55552c", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/python/native/flake.nix b/python/native/flake.nix new file mode 100644 index 0000000..cbd4a92 --- /dev/null +++ b/python/native/flake.nix @@ -0,0 +1,25 @@ +{ + description = "Python flake with native packages"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + inputs.flake-utils.url = "github:numtide/flake-utils"; + + outputs = { self, nixpkgs, flake-utils}: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + in { + devShells.default = pkgs.mkShell { + packages = with pkgs; [ + python312 + python312Packages.biopython # Bio-informatics + + # Editor of your choice + # jetbrains.pycharm-professional + ]; + }; + }); +}