poetry2nix/tests/canonical-module-names/default.nix
adisbladis 9dfb080d3f
Add canonicalisation of module names
This shouldn't be required and I think that these are actually
packaging bugs and not something that poetry2nix should really be
concerned with.

Closes #84
2020-04-15 10:24:46 +01:00

26 lines
624 B
Nix

{ pkgs, lib, poetry2nix, python3 }:
poetry2nix.mkPoetryApplication {
python = python3;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
src = lib.cleanSource ./.;
overrides = [
poetry2nix.defaultPoetryOverrides
(import ./poetry-git-overlay.nix { inherit pkgs; })
(
self: super: {
pyramid-deferred-sqla = super.pyramid-deferred-sqla.overridePythonAttrs (
old: {
postPatch = ''
touch LICENSE
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' ""
'';
}
);
}
)
];
}