steevveen:  Here's a simple derivation that should work for you:
```nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
    src = ./.;
    name = "my-fancy-package";
    buildInputs = with pkgs; [ python37 ];
}
```