nix-community / nixpkgs-pytools

Tools for removing the tedious nature of creating nixpkgs derivations [maintainer=@costrouc]
MIT License
45 stars 9 forks source link

add setup for python-packaging #7

Closed makefu closed 5 years ago

makefu commented 5 years ago

This PR adds support for python packaging (and pip releasing).

test it

After installing nur:

nix-shell -p pkgs.nur.repos.makefu.nixpkgs-pytools  --run "python-package-init docopt"

The derivation can be found at: https://git.shackspace.de/krebs/stockholm/blob/master/makefu/5pkgs/nixpkgs-pytools/default.nix

costrouc commented 5 years ago

This looks great. I like the use of console_scripts to expose the scripts. Also looks like I need to checkout NUR right now. I will be adding tests this week that will try out getting the information on several projects etc.

makefu commented 5 years ago

for testing you can of course also just fetch the build description and run it:

wget https://git.shackspace.de/krebs/stockholm/raw/master/makefu/5pkgs/nixpkgs-pytools/default.nix
$(nix-build -E 'with import <nixpkgs> {};pkgs.python3.pkgs.callPackage ./default.nix {}' )/bin/python-package-init
makefu commented 5 years ago

@costrouc if you think this change is fine,i'd like to merge it into master. Next step would be inclusion into nixpkgs.

costrouc commented 5 years ago

Yes looks great with me!

costrouc commented 5 years ago

I will add it to nixpkgs