# How to override Python package (Anki)?

**URL:** https://discourse.nixos.org/t/how-to-override-python-package-anki/8213
**Category:** Help
**Created:** [July 19, 2020, 8:34pm UTC](https://discourse.nixos.org/t/how-to-override-python-package-anki/8213 "2020-07-19T20:34:24Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![cideM](https://discourse.nixos.org/user_avatar/discourse.nixos.org/cidem/32/2329_2.png) [@cideM](https://discourse.nixos.org/u/cideM)
#### Post date: [July 20, 2020, 8:21pm UTC](https://discourse.nixos.org/t/how-to-override-python-package-anki/8213/4 "2020-07-20T20:21:28Z")

</div>

Hm that’s true but I’d like to at least have the current version working on my machine before creating a PR. Unfortunately I already tried various things from different sources. To be precise, I checked the info from

> <https://github.com/flyingcircusio/fc-nixos/blob/a1c1063c4f2205fb6385fadc53083425451af5db/pkgs/overlay-python.nix>

> [@Overriding not being kept](https://discourse.nixos.org/t/overriding-not-being-kept/7818/2):
>
> It seems that is not possible to have more than one overlay calling python3.override. Based on this [solution](https://github.com/flyingcircusio/fc-nixos/blob/a1c1063c4f2205fb6385fadc53083425451af5db/pkgs/overlay.nix), I fixed this problem this way: 1- I created a file to keep all python overlays called python\_overlays.nix with this content: python-self: python-super: { nibabel = python-super.nibabel.overrideAttrs (oldAttrs: { doInstallCheck = false; propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [python-super.packaging]; }); Keras = python-super.Keras.overrideAttrs (ol…

[Nixpkgs Reference Manual](https://nixos.org/nixpkgs/manual/#how-to-override-a-python-package-using-overlays) [Nixpkgs Reference Manual](https://nixos.org/nixpkgs/manual/#python)

yet I can’t make it work and it’s also a bit hard to debug since I don’t really know how.

I do know that there’s nothing from the overridden Anki in my store

```shell
$ ls /nix/store | rg anki
026x7hai05f7188ddynfgdq83xk5pdd2-anki-2.1.15
bcy1xidzminb307wbwglw916rrsafip3-anki-2.1.15-fish-completions.drv
bxac2039mdhxkjcdqvi4y204lywngqf7-anki-2.1.15.drv
by64k6hw5n4ng2jvnxvvgp63ch47lz4w-anki-manual-2.1.15.drv
f14acqzsayfy0564pyqkiipnif3w2yl1-anki-manual-2.1.15
ksbp4g8zg4ninjg9fvi7gacvsk8gawrg-anki-2.1.15-fish-completions
xj7qsf6mzhdxclz668qnnl3sq8h4iffn-anki-2.1.15-man
yxa1a4qaq0c1q04dza3qjzcz5gcn5kqx-anki-2.1.15-source.tgz.drv

```

---

_[View the full topic](https://discourse.nixos.org/t/how-to-override-python-package-anki/8213)._
