Skip to content

Commit

Permalink
pep621.getDependenciesNames: Normalize returned names
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Jul 5, 2024
1 parent 298d55c commit 8d03692
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pep621.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pep440, pep508, pep518, ... }:
{ lib, pep440, pep508, pep518, pypa, ... }:
let
inherit (builtins) mapAttrs foldl' split filter elem;
inherit (lib) isString filterAttrs fix;
Expand Down Expand Up @@ -65,7 +65,8 @@ fix (self: {
*/
getDependenciesNames =
let
getNames = map (dep: dep.name);
normalize = pypa.normalizePackageName;
getNames = map (dep: normalize dep.name);
in
dependencies: {
dependencies = getNames dependencies.dependencies;
Expand Down

0 comments on commit 8d03692

Please sign in to comment.