setup package build

This commit is contained in:
Antoine Martin 2022-02-01 23:17:34 +01:00
parent d184388dc0
commit b43ecf6f24
3 changed files with 13 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
/.envrc /.envrc
/.direnv/ /.direnv/
/dist/
/result

View file

@ -0,0 +1,6 @@
from beancount.ingest import importer
class CaisseDEpargneImporter(importer.ImporterProtocol):
def identify(self, file):
return False

View file

@ -17,6 +17,11 @@
}; };
in in
{ {
packages.beancount-cde-importer = pkgs.poetry2nix.mkPoetryApplication {
projectDir = ./.;
};
defaultPackage = self.packages.${system}.beancount-cde-importer;
devShell = pkgs.mkShell { devShell = pkgs.mkShell {
buildInputs = [ buildInputs = [
poetryEnv poetryEnv