Skip to content

pysaml depends on pythonFull? #19225

@copumpkin

Description

@copumpkin

Issue description

pysaml2 depends on dbm, which is a core package of python that's only available on pythonFull.

Steps to reproduce

Run:

nix-shell -p "(import ./. {}).python" -p "(import ./. {}).pythonPackages.pysaml2"

In the shell, import saml2.server, and it'll tell you

>>> import saml2.server
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nix/store/3rn4v9cqh5yi6askkcdjq4wipmswxjr9-python2.7-pysaml2-3.0.2/lib/python2.7/site-packages/saml2/server.py", line 12, in <module>
    import dbm
ImportError: No module named dbm

If instead you use:

nix-shell -p "(import ./. {}).pythonFull" -p "(import ./. {}).pythonPackages.pysaml2"

Everything works fine.

Technical details

  • Nix version: nix-env (Nix) 1.10
  • Nixpkgs version: e70a2ba

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: pythonPython is a high-level, general-purpose programming language.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions