Advertisement
Guest User

nixos python package (not working)

a guest
Oct 29th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # default.nix
  2. with import <nixpkgs> {};
  3.  
  4. let
  5. pkg = callPackage ./package.nix {
  6. inherit (pkgs.python37Packages) buildPythonPackage bottle dateutil requests;
  7. };
  8. in
  9. pkg
  10.  
  11. # package.nix
  12. { buildPythonPackage, bottle, dateutil, requests }:
  13.  
  14. buildPythonPackage rec {
  15. pname = "ruterstop";
  16. version = "0.0.1dev";
  17.  
  18. src = ./src;
  19.  
  20. # TODO: explicitly require dependencies using fetchPypi with locked versions/hashes
  21. propagatedBuildInputs = [ bottle dateutil requests ];
  22.  
  23. # Run tests manually instead of having to rely on `python setup.py test`
  24. checkPhase = ''
  25. python -m unittest tests/*.py
  26. '';
  27.  
  28. meta = {
  29. description = ''
  30. Realtime stop info for public transport in Oslo, using the EnTur JourneyPlanner API
  31. '';
  32. };
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement