Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rdmolony/nix-numpy-financial

A nix derivation for numpy-financial - https://pypi.org/project/numpy-financial/#files
https://github.com/rdmolony/nix-numpy-financial

nix numpy python

Last synced: 5 days ago
JSON representation

A nix derivation for numpy-financial - https://pypi.org/project/numpy-financial/#files

Awesome Lists containing this project

README

        

# `nix-numpy-financial`

This repository defines a `Nix` definition for building the `Python` library `numpy-financial`

---

## Install `nix`

Install `nix` ...

Via [DeterminateSystems/nix-installer](https://github.com/DeterminateSystems/nix-installer) ...

```sh
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
sh -s -- install
```

Or via [the official installer](https://nix.dev/install-nix.html) ...

```sh
curl -L https://nixos.org/nix/install | sh -s -- --daemon
```

> [!NOTE]
> [`DeterminateSystems/nix-installer` ships with a `nix-uninstall` command if you want to easily remove it](https://github.com/DeterminateSystems/nix-installer/blob/ef23eb4d30c279547bdbe3026a0acaaf8bc680dc/README.md#uninstalling)

---

## `Nix Flake`

Add ...

```nix
{
inputs = {
numpy-financial = {
url = "github:rdmolony/numpy-financial";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
```

... to your `flake.nix` to install this `nix` derivation in your project.

---

## Build Locally

Via `nix-build` ...

```sh
nix-build
```

Or via `nix repl` ...

```sh
nix repl ''
numpy-financial = pkgs.python312Packages.callPackage ./numpy-financial.nix { }
:b numpy-financial
```