Guest User

Untitled

a guest
Oct 6th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. { lib,
  2. fetchPypi,
  3. pkgconfig,
  4. setuptools,
  5. toml,
  6. lxml,
  7. setuptools_scm,
  8. buildPythonPackage,
  9. pkgs
  10. }:
  11.  
  12. buildPythonPackage rec {
  13. pname = "py-xmlsec";
  14. version = "1.3.8";
  15.  
  16. src = fetchPypi {
  17. inherit version;
  18. pname="xmlsec";
  19. sha256 = "1ki5jiws8r9sbdbbn5cw058m57rhx42g91rrsa2bblqwngi3z546";
  20. };
  21.  
  22. propagatedBuildInputs = [ pkgs.xmlsec pkgs.openssl pkgconfig lxml setuptools_scm setuptools toml ];
  23. nativeBuildInputs = [ pkgs.pkg-config ];
  24. preBuild = ''
  25. pkg-config --variable=prefix xmlsec1
  26. python -c "import pkgconfig; pkgconfig.parse('xmlsec1')"
  27. '';
  28. }
  29.  
  30.  
  31.  
Add Comment
Please, Sign In to add comment