python3Packages.hy: add passthru.withPackages attribute

main
Thiago Kenji Okada 2 years ago
parent 927dffd2a7
commit d956922c41
  1. 15
      pkgs/development/python-modules/hy/default.nix
  2. 2
      pkgs/top-level/all-packages.nix

@ -10,7 +10,8 @@
, pythonOlder , pythonOlder
, rply , rply
, testers , testers
, hyDefinedPythonPackages ? python-packages: [] /* Packages like with python.withPackages */ , toPythonApplication
, hyDefinedPythonPackages ? python-packages: [ ] /* Packages like with python.withPackages */
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -55,9 +56,15 @@ buildPythonPackage rec {
pythonImportsCheck = [ "hy" ]; pythonImportsCheck = [ "hy" ];
passthru.tests.version = testers.testVersion { passthru = {
package = hy; tests.version = testers.testVersion {
command = "hy -v"; package = hy;
command = "hy -v";
};
# also for backwards compatibility with removed pkgs/development/interpreters/hy
withPackages = python-packages: (toPythonApplication hy).override {
hyDefinedPythonPackages = python-packages;
};
}; };
meta = with lib; { meta = with lib; {

@ -35047,7 +35047,7 @@ with pkgs;
simplenote = callPackage ../applications/misc/simplenote { }; simplenote = callPackage ../applications/misc/simplenote { };
hy = with python3Packages; toPythonApplication hy; hy = python3Packages.hy.withPackages (python-packages: [ ]);
wmic-bin = callPackage ../servers/monitoring/plugins/wmic-bin.nix { }; wmic-bin = callPackage ../servers/monitoring/plugins/wmic-bin.nix { };

Loading…
Cancel
Save